From 2ded6bf669e2bf8ae488c7c5d901a5b8e64256a53e73aa7dcd9a7c9b969774e6 Mon Sep 17 00:00:00 2001 From: Nicolas FORMICHELLA Date: Wed, 3 Nov 2021 06:15:22 +0000 Subject: [PATCH] * update to v4.3 * add completions * cool ASCII art logo in the help screen * add bookmarks directory for flexible symlinked bookmarks * new key B to add a symlinked bookmark for current dir * special variables $dN, $fN available for plugins/prompt/shell to access per-context dir/hovered file * config NNN_ORDER to set directory-specific ordering * show/hide hidden files as per context state in plugin based batch rename * retain search filter history for plugin finder * sync multiple instances of nnn after operation on selection * signal CWD change to terminal via OSC-7 (#1147) * save complete per-context filter when saving sessions * disable symlink resolution for paths in NNN_BMS and arg PATH * do not end selection mode on running plugins/prompt/shell * plugin bookmarks replaced by symlinked bookmarks support * list open locations in active contexts in help page * make option O_MATCHFLTR to discard filter key if no match * configurable NNN_TMPFILE to cd on quit * disable auto marking directories (use -) * picker mode improvements open tty for input if STDIN is non-tty truncate output file before writing do not double select a file on Enter * legacy macOS (< 10.12.0) support * no redraw during du calculation, show processed dir name * plugin xdgdefault: add dmenu support * user patch restorepreview: close/restore preview-tui for internal edits OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=59 --- nnn.changes | 32 ++++++++++++++++++++++++++++++++ nnn.spec | 40 +++++++++++++++++++++++++++++++++++++++- v4.2.tar.gz | 3 --- v4.3.tar.gz | 3 +++ 4 files changed, 74 insertions(+), 4 deletions(-) delete mode 100644 v4.2.tar.gz create mode 100644 v4.3.tar.gz diff --git a/nnn.changes b/nnn.changes index caacd83..2aac99c 100644 --- a/nnn.changes +++ b/nnn.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Wed Nov 3 06:10:57 UTC 2021 - Nicolas FORMICHELLA + +* update to v4.3 +* add completions +* cool ASCII art logo in the help screen +* add bookmarks directory for flexible symlinked bookmarks +* new key B to add a symlinked bookmark for current dir +* special variables $dN, $fN available for plugins/prompt/shell to access per-context dir/hovered file +* config NNN_ORDER to set directory-specific ordering +* show/hide hidden files as per context state in plugin based batch rename +* retain search filter history for plugin finder +* sync multiple instances of nnn after operation on selection +* signal CWD change to terminal via OSC-7 (#1147) +* save complete per-context filter when saving sessions +* disable symlink resolution for paths in NNN_BMS and arg PATH +* do not end selection mode on running plugins/prompt/shell +* plugin bookmarks replaced by symlinked bookmarks support +* list open locations in active contexts in help page +* make option O_MATCHFLTR to discard filter key if no match +* configurable NNN_TMPFILE to cd on quit +* disable auto marking directories (use -) +* picker mode improvements + open tty for input if STDIN is non-tty + truncate output file before writing + do not double select a file on Enter +* legacy macOS (< 10.12.0) support +* no redraw during du calculation, show processed dir name +* plugin xdgdefault: add dmenu support +* user patch restorepreview: close/restore preview-tui for internal edits + + ------------------------------------------------------------------- Wed Jul 21 19:47:01 UTC 2021 - Dilawar Singh diff --git a/nnn.spec b/nnn.spec index 779e7e2..20347ab 100644 --- a/nnn.spec +++ b/nnn.spec @@ -17,7 +17,7 @@ Name: nnn -Version: 4.2 +Version: 4.3 Release: 0 Summary: Terminal based file browser License: BSD-2-Clause @@ -38,6 +38,31 @@ 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 @@ -48,10 +73,23 @@ export CFLAGS="%{optflags}" %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 diff --git a/v4.2.tar.gz b/v4.2.tar.gz deleted file mode 100644 index a652503..0000000 --- a/v4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5675f9fe53bddfd92681ef88bf6c0fab3ad897f9e74dd6cdff32fe1fa62c687f -size 229745 diff --git a/v4.3.tar.gz b/v4.3.tar.gz new file mode 100644 index 0000000..d96ef24 --- /dev/null +++ b/v4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6df8e262e5613dd192bac610a6da711306627d56573f1a770a173ef078953bb +size 236606