summaryrefslogtreecommitdiffstats
path: root/.config/fish/completions/nnn.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/completions/nnn.fish')
-rw-r--r--.config/fish/completions/nnn.fish45
1 files changed, 45 insertions, 0 deletions
diff --git a/.config/fish/completions/nnn.fish b/.config/fish/completions/nnn.fish
new file mode 100644
index 0000000..213c5e4
--- /dev/null
+++ b/.config/fish/completions/nnn.fish
@@ -0,0 +1,45 @@
1#
2# Fish completion definition for nnn.
3#
4# Author:
5# Arun Prakash Jana <engineerarun@gmail.com>
6#
7
8if test -n "$XDG_CONFIG_HOME"
9 set sessions_dir $XDG_CONFIG_HOME/.config/nnn/sessions
10else
11 set sessions_dir $HOME/.config/nnn/sessions
12end
13
14complete -c nnn -s a -d 'auto-create NNN_FIFO'
15complete -c nnn -s A -d 'disable dir auto-select'
16complete -c nnn -s b -r -d 'bookmark key to open' -x -a '(echo $NNN_BMS | awk -F: -v RS=\; \'{print $1"\t"$2}\')'
17complete -c nnn -s c -d 'cli-only opener'
18complete -c nnn -s C -d 'color by context'
19complete -c nnn -s d -d 'start in detail mode'
20complete -c nnn -s D -d 'dirs in context color'
21complete -c nnn -s e -d 'open text files in $VISUAL/$EDITOR/vi'
22complete -c nnn -s E -d 'use EDITOR for undetached edits'
23complete -c nnn -s f -d 'use readline history file'
24complete -c nnn -s g -d 'regex filters'
25complete -c nnn -s H -d 'show hidden files'
26complete -c nnn -s i -d 'show current file info'
27complete -c nnn -s J -d 'no auto-proceed on select'
28complete -c nnn -s K -d 'detect key collision'
29complete -c nnn -s l -r -d 'lines to move per scroll'
30complete -c nnn -s n -d 'start in type-to-nav mode'
31complete -c nnn -s o -d 'open files only on Enter'
32complete -c nnn -s p -r -d 'copy selection to file' -a '-\tstdout'
33complete -c nnn -s P -r -d 'plugin key to run' -x -a '(echo $NNN_PLUG | awk -F: -v RS=\; \'{print $1"\t"$2}\')'
34complete -c nnn -s Q -d 'disable quit confirmation'
35complete -c nnn -s r -d 'show cp, mv progress (Linux-only)'
36complete -c nnn -s R -d 'disable rollover at edges'
37complete -c nnn -s s -r -d 'load session by name' -x -a '@\t"last session" (ls $sessions_dir)'
38complete -c nnn -s S -d 'persistent session'
39complete -c nnn -s t -r -d 'timeout in seconds to lock'
40complete -c nnn -s T -r -d 'a d e r s t v'
41complete -c nnn -s u -d 'use selection (no prompt)'
42complete -c nnn -s U -d 'show user and group'
43complete -c nnn -s V -d 'show program version and exit'
44complete -c nnn -s x -d 'notis, sel to system clipboard, xterm title'
45complete -c nnn -s h -d 'show program help'