SHA256
1
0
forked from pool/nnn

- update to 5.0:

* show relative line numbering when jumping (#1808)
  * option `-N` to use native prompt when compiled with
    libreadline
  * rm improvements
    - log removed filename
    - cancel on 'n' or 'N'
    - show name of the hovered file to be removed
    - show number of selected files to be removed
  * new keybind <kbd>X</kbd> to force `rm -rf` always (#1811)
  * fix sort order getting changed on context switch (#1757)
  * fix current selection on new file creation, if symlinks exist
    (#1767)
  * fix filter toggle with mouse click on last 2 rows (#1765)
  * fix file creation (#1864)
  * when handling bookmark, use readlink, not realpath
  * set `$PWD` on directory switch
  * add option `-0` to null-separate file paths in picker mode
  * quitcd.nu (for nushell) now supports modular import (#1806)
  * add _command as plugin_ example to cd to user input directory
  * `cbcopy-mac`, `cbpaste-mac`: plugins for integration with
    macOS clipboard
  * `fzhist` plugin: add support for zsh history
  * `preview-tui` plugin: support eza as replacement for exa,
    multiple fixes
  * `preview-tui` plugin: add full svg support (#1865)
  * `preview-tabbed`: show (n)sxiv in thumbnail mode inside
    "Pictures" directory
  * mpv sixel/kitty support for preview (#1590)

OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=72
This commit is contained in:
Dilawar Singh 2025-02-12 16:00:07 +00:00 committed by Git OBS Bridge
commit 88a3f0538c
9 changed files with 1214 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

BIN
nnn-4.9.tar.gz.sig Normal file

Binary file not shown.

BIN
nnn-5.0.tar.gz.sig Normal file

Binary file not shown.

3
nnn-v4.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b15dc7ae7b8ec6d838569dddebae928a161e6f06a02bd1ed67571c822bb0a35
size 253995

3
nnn-v5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ba82d6c685bb3687521de2f576244f82558a4af9afeeedda434d5ecb1c029520
size 257496

1036
nnn.changes Normal file

File diff suppressed because it is too large Load Diff

51
nnn.keyring Normal file
View File

@ -0,0 +1,51 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFd8HF0BEADgc8g/xwXD06IRx6SWrvukTohmuasWqrtxl10+bev//rhr/khI
UUDWopeXxvpO9vBbPUoP//qlNG93bz/DJnZVOjkmzAj6E47en/jkUUzGK/q/sn9l
JGOqjDY0iIOJAbPv2E67WESYxDgJaFfqAb2yfK0EOyrrHCMKPcIikBm/bdAFnqlp
ZEkwfM44Em1s2JKDv/NbNVv7wHxaBNcYfHwY8TD1fmAAN9546tT5sP+M8sB/R9LP
ndVDCv2RPSrAeTOCIVHMNcIe39gkuNAIJEHWeCX5Sx8CETdODy9tTfcLO4CWcz7P
JELWHPO8mvK939nOipMcEq9e1TTbN4cpokhbk4/Ji+xTUcspVfwxIsjbEkAKUrFB
dvCG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eEUIXJ8aq6PLk9Fx14UgZ2rJ46PUiraWiF8G
fa9Cc4rd2NsZGg50bY8KM/xselZq9fJHWzUoMQ7yODBnYkF8c2tCRV018JFMMzak
FkdUb3aupeNCpi65VD6zn22v/PrsjDfOi/NGHu81Kj9ovEJn1JBJ+pWJ56dkvkws
zPbwK1vQRbVNz0DzQpu/+9q5Uo13mGvMT14p0BD6DjufHGaEKyFpTl7NSCzFM244
som1PeCsmuHuTlvXlKOUHCPE+IJgMVjc7JAVH2X8mVj8Uich3I5C3W3Q96wRqavD
Gzq42VJp+nnF/amYL8Lu0ANqrsON8R2kW/QtfRmEHr5HZ6Asa9qChU1u9FdQcxHE
8qYEqcXS2WdtO8oUNYEK5oYGgvF6tzN29jG56F1CZVtqQCNmXwP82FG6HOBb20U6
DdoZfqVRg4Z6
=+xYQ
-----END PGP PUBLIC KEY BLOCK-----

97
nnn.spec Normal file
View File

@ -0,0 +1,97 @@
#
# spec file for package nnn
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: nnn
Version: 5.0
Release: 0
Summary: Terminal based file browser
License: BSD-2-Clause
Group: Productivity/File utilities
URL: https://github.com/jarun/nnn#nnn
Source0: https://github.com/jarun/nnn/releases/download/v%{version}/%{name}-v%{version}.tar.gz#/%{name}-v%{version}.tar.gz
Source1: https://github.com/jarun/nnn/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
Source99: nnn.keyring
BuildRequires: pkgconfig
BuildRequires: readline-devel
Recommends: sshfs
%if 0%{?leap_version} == 420300
BuildRequires: ncurses-devel
%else
BuildRequires: pkgconfig(ncursesw)
%endif
%description
nnn is a fork of noice, a terminal file browser with keyboard
shortcuts for navigation, opening files and running tasks. There is
no config file and MIME associations are hard-coded.
%package bash-completion
Summary: Bash completions for %{name}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
The official bash completion script for %{name}.
%package fish-completion
Summary: Fish Completion for %{name}
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
The official fish completion script for %{name}.
%package zsh-completion
Summary: ZSH Completion for %{name}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
The official zsh completion script for %{name}.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
%make_build strip
%install
%make_install PREFIX=%{_prefix}
install -Dm0644 misc/auto-completion/fish/nnn.fish $RPM_BUILD_ROOT%{_datadir}/fish/vendor_completions.d/%{name}.fish
install -Dm0644 misc/auto-completion/bash/nnn-completion.bash $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/%{name}
install -Dm0644 misc/auto-completion/zsh/_nnn $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_%{name}
%files
%license LICENSE
%doc README.md CHANGELOG
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh/
%changelog