2017-09-02 06:53:19 +00:00
|
|
|
#
|
|
|
|
# Fish completion definition for nnn.
|
|
|
|
#
|
|
|
|
# Author:
|
|
|
|
# Arun Prakash Jana <engineerarun@gmail.com>
|
|
|
|
#
|
|
|
|
|
2019-10-18 22:11:39 +00:00
|
|
|
if test -n "$XDG_CONFIG_HOME"
|
|
|
|
set sessions_dir $XDG_CONFIG_HOME/.config/nnn/sessions
|
|
|
|
else
|
|
|
|
set sessions_dir $HOME/.config/nnn/sessions
|
|
|
|
end
|
|
|
|
|
2019-08-30 15:25:23 +00:00
|
|
|
complete -c nnn -s a -d 'use access time'
|
2019-10-18 22:11:39 +00:00
|
|
|
complete -c nnn -s b -r -d 'bookmark key to open' -x -a '(echo $NNN_BMS | awk -F: -v RS=\; \'{print $1"\t"$2}\')'
|
2019-10-06 13:27:15 +00:00
|
|
|
complete -c nnn -s c -d 'cli-only opener'
|
2019-08-16 17:45:29 +00:00
|
|
|
complete -c nnn -s d -d 'start in detail mode'
|
2019-10-23 14:58:08 +00:00
|
|
|
complete -c nnn -s e -r -d 'load session by name' -x -a '@\t"last session" (ls $sessions_dir)'
|
2019-10-06 13:27:15 +00:00
|
|
|
complete -c nnn -s f -d 'run filter as cmd on prompt key'
|
2019-08-16 17:45:29 +00:00
|
|
|
complete -c nnn -s H -d 'show hidden files'
|
2017-09-02 06:53:19 +00:00
|
|
|
complete -c nnn -s i -d 'start in navigate-as-you-type mode'
|
2019-10-11 15:29:22 +00:00
|
|
|
complete -c nnn -s K -d 'detect key collision'
|
2019-07-14 17:30:14 +00:00
|
|
|
complete -c nnn -s n -d 'use version compare to sort files'
|
2019-08-16 18:10:43 +00:00
|
|
|
complete -c nnn -s o -d 'open files only on Enter'
|
2019-10-18 22:11:39 +00:00
|
|
|
complete -c nnn -s p -r -d 'copy selection to file' -a '-\tstdout'
|
2019-08-23 14:48:17 +00:00
|
|
|
complete -c nnn -s r -d 'show cp, mv progress (Linux-only)'
|
2019-02-05 19:08:55 +00:00
|
|
|
complete -c nnn -s s -d 'use substring match for filters'
|
2017-09-02 06:53:19 +00:00
|
|
|
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
2019-08-16 18:37:38 +00:00
|
|
|
complete -c nnn -s t -d 'disable dir auto-select'
|
2017-09-02 06:53:19 +00:00
|
|
|
complete -c nnn -s v -d 'show program version and exit'
|
2019-08-16 17:45:29 +00:00
|
|
|
complete -c nnn -s h -d 'show program help'
|