"Fossies" - the Fresh Open Source Software Archive

Member "nnn-4.2/misc/auto-completion/fish/nnn.fish" (21 Jul 2021, 2126 Bytes) of package /linux/misc/nnn-v4.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Fish source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "nnn.fish": v4.1.1_vs_v4.2.

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