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
|
|
|
|
|
2020-05-25 23:51:46 +00:00
|
|
|
complete -c nnn -s a -d 'auto-create NNN_FIFO'
|
2020-01-08 22:04:10 +00:00
|
|
|
complete -c nnn -s A -d 'disable dir auto-select'
|
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'
|
2020-08-04 15:06:19 +00:00
|
|
|
complete -c nnn -s C -d 'color by context'
|
2019-08-16 17:45:29 +00:00
|
|
|
complete -c nnn -s d -d 'start in detail mode'
|
2020-09-01 17:36:26 +00:00
|
|
|
complete -c nnn -s D -d 'dirs in context color'
|
2020-01-17 13:36:42 +00:00
|
|
|
complete -c nnn -s e -d 'open text files in $VISUAL/$EDITOR/vi'
|
2019-11-30 12:44:39 +00:00
|
|
|
complete -c nnn -s E -d 'use EDITOR for undetached edits'
|
2020-03-20 16:54:15 +00:00
|
|
|
complete -c nnn -s f -d 'use readline history file'
|
2019-12-14 13:30:09 +00:00
|
|
|
complete -c nnn -s g -d 'regex filters'
|
2019-08-16 17:45:29 +00:00
|
|
|
complete -c nnn -s H -d 'show hidden files'
|
2021-10-23 13:48:12 +00:00
|
|
|
complete -c nnn -s i -d 'show current file info'
|
2022-04-16 12:06:07 +00:00
|
|
|
complete -c nnn -s J -d 'no auto-jump on select'
|
2019-10-11 15:29:22 +00:00
|
|
|
complete -c nnn -s K -d 'detect key collision'
|
2020-05-10 05:51:37 +00:00
|
|
|
complete -c nnn -s l -r -d 'lines to move per scroll'
|
2020-04-12 13:31:02 +00:00
|
|
|
complete -c nnn -s n -d 'start in type-to-nav mode'
|
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'
|
2020-05-18 03:35:19 +00:00
|
|
|
complete -c nnn -s P -r -d 'plugin key to run' -x -a '(echo $NNN_PLUG | awk -F: -v RS=\; \'{print $1"\t"$2}\')'
|
2019-12-14 17:58:13 +00:00
|
|
|
complete -c nnn -s Q -d 'disable quit confirmation'
|
2019-08-23 14:48:17 +00:00
|
|
|
complete -c nnn -s r -d 'show cp, mv progress (Linux-only)'
|
2019-12-01 17:30:06 +00:00
|
|
|
complete -c nnn -s R -d 'disable rollover at edges'
|
2019-12-20 10:19:13 +00:00
|
|
|
complete -c nnn -s s -r -d 'load session by name' -x -a '@\t"last session" (ls $sessions_dir)'
|
2020-04-24 04:06:33 +00:00
|
|
|
complete -c nnn -s S -d 'persistent session'
|
2020-01-17 13:36:42 +00:00
|
|
|
complete -c nnn -s t -r -d 'timeout in seconds to lock'
|
2020-03-17 21:05:05 +00:00
|
|
|
complete -c nnn -s T -r -d 'a d e r s t v'
|
2021-03-17 17:36:08 +00:00
|
|
|
complete -c nnn -s u -d 'use selection (no prompt)'
|
2020-10-31 15:17:07 +00:00
|
|
|
complete -c nnn -s U -d 'show user and group'
|
2019-12-28 05:45:38 +00:00
|
|
|
complete -c nnn -s V -d 'show program version and exit'
|
2021-04-13 10:50:28 +00:00
|
|
|
complete -c nnn -s x -d 'notis, sel to system clipboard, xterm title'
|
2019-08-16 17:45:29 +00:00
|
|
|
complete -c nnn -s h -d 'show program help'
|