diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-17 19:06:42 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-17 19:37:57 +0530 |
commit | 64667b377d132cd915d128d91c2ab7b38c1ba683 (patch) | |
tree | 97a51406471052e9d91969fc9dfcfce6533b3283 /misc | |
parent | 94a233b808e039d1a17aab4e12f1b1fb13302d54 (diff) | |
download | nnn-64667b377d132cd915d128d91c2ab7b38c1ba683.tar.gz |
Options -e and -t
Replaces the following environment variables:
- NNN_USE_EDITOR
- NNN_IDLE_TIMEOUT
Diffstat (limited to 'misc')
-rw-r--r-- | misc/auto-completion/bash/nnn-completion.bash | 4 | ||||
-rw-r--r-- | misc/auto-completion/fish/nnn.fish | 2 | ||||
-rw-r--r-- | misc/auto-completion/zsh/_nnn | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash index 74349e6..b6e370d 100644 --- a/misc/auto-completion/bash/nnn-completion.bash +++ b/misc/auto-completion/bash/nnn-completion.bash @@ -17,6 +17,7 @@ _nnn () -b -c -d + -e -E -g -H @@ -29,6 +30,7 @@ _nnn () -R -s -S + -t -v -V -x @@ -42,6 +44,8 @@ _nnn () elif [[ $prev == -s ]]; then local sessions_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions COMPREPLY=( $(cd "$sessions_dir" && compgen -f -d -- "$cur") ) + elif [[ $prev == -t ]]; then + return 1 elif [[ $cur == -* ]]; then COMPREPLY=( $(compgen -W "${opts[*]}" -- "$cur") ) else diff --git a/misc/auto-completion/fish/nnn.fish b/misc/auto-completion/fish/nnn.fish index 9358882..99c857a 100644 --- a/misc/auto-completion/fish/nnn.fish +++ b/misc/auto-completion/fish/nnn.fish @@ -16,6 +16,7 @@ complete -c nnn -s A -d 'disable dir auto-select' complete -c nnn -s b -r -d 'bookmark key to open' -x -a '(echo $NNN_BMS | awk -F: -v RS=\; \'{print $1"\t"$2}\')' complete -c nnn -s c -d 'cli-only opener' complete -c nnn -s d -d 'start in detail mode' +complete -c nnn -s e -d 'open text files in $VISUAL/$EDITOR/vi' complete -c nnn -s E -d 'use EDITOR for undetached edits' complete -c nnn -s g -d 'regex filters' complete -c nnn -s H -d 'show hidden files' @@ -28,6 +29,7 @@ complete -c nnn -s r -d 'show cp, mv progress (Linux-only)' complete -c nnn -s R -d 'disable rollover at edges' complete -c nnn -s s -r -d 'load session by name' -x -a '@\t"last session" (ls $sessions_dir)' complete -c nnn -s S -d 'start in disk usage analyzer mode' +complete -c nnn -s t -r -d 'timeout in seconds to lock' complete -c nnn -s v -d 'use version compare to sort files' complete -c nnn -s V -d 'show program version and exit' complete -c nnn -s x -d 'notis, sel to system clipboard' diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn index d36d6ee..bd6e926 100644 --- a/misc/auto-completion/zsh/_nnn +++ b/misc/auto-completion/zsh/_nnn @@ -14,6 +14,7 @@ args=( '(-b)-b[bookmark key to open]:key char' '(-c)-c[cli-only opener]' '(-d)-d[start in detail mode]' + '(-e)-e[open text files in $VISUAL/$EDITOR/vi]' '(-E)-E[use EDITOR for undetached edits]' '(-g)-g[regex filters]' '(-H)-H[show hidden files]' @@ -26,6 +27,7 @@ args=( '(-R)-R[disable rollover at edges]' '(-s)-s[load session]:session name' '(-S)-S[start in disk usage analyzer mode]' + '(-t)-t[timeout to lock]:seconds' '(-v)-v[use version compare to sort files]' '(-V)-V[show program version and exit]' '(-x)-x[notis, sel to system clipboard]' |