_nnn (1801B)
1 #compdef nnn 2 # 3 # Completion definition for nnn. 4 # 5 # Author: 6 # Arun Prakash Jana <engineerarun@gmail.com> 7 # 8 9 setopt localoptions noshwordsplit noksharrays 10 local -a args 11 args=( 12 '(-a)-a[auto-create NNN_FIFO]' 13 '(-A)-A[disable dir auto-enter]' 14 '(-b)-b[bookmark key to open]:key char' 15 '(-B)-B[use bsdtar for archives]' 16 '(-c)-c[cli-only opener]' 17 '(-C)-C[color by context]' 18 '(-d)-d[start in detail mode]' 19 '(-D)-D[dirs in context color]' 20 '(-e)-e[open text files in $VISUAL/$EDITOR/vi]' 21 '(-E)-E[use EDITOR for undetached edits]' 22 '(-f)-f[use history file]' 23 '(-F)-F[fifo notification mode]:mode:(( 0\:"notify as previewer" 1\:"notify as explorer" ))' 24 '(-g)-g[regex filters]' 25 '(-H)-H[show hidden files]' 26 '(-i)-i[show current file info]' 27 '(-J)-J[no auto-advance on selection]' 28 '(-K)-K[detect key collision and exit]' 29 '(-l)-l[lines to move per scroll]:val' 30 '(-n)-n[start in type-to-nav mode]' 31 '(-o)-o[open files only on Enter]' 32 '(-p)-p[copy selection to file]:file name' 33 '(-P)-P[plugin key to run]:key char' 34 '(-Q)-Q[disable quit confirmation]' 35 '(-r)-r[show cp, mv progress (Linux-only)]' 36 '(-R)-R[disable rollover at edges]' 37 '(-s)-s[load session]:session name' 38 '(-S)-S[persistent session]' 39 '(-t)-t[timeout to lock]:seconds' 40 '(-T)-T[sort order]:key:(( a\:"apparent disk usage" d\:"disk usage" e\:"extension" r\:"reverse" s\:"size" t\:"time" v\:"version" ))' 41 '(-u)-u[use selection (no prompt)]' 42 '(-U)-U[show user and group]' 43 '(-V)-V[show program version and exit]' 44 '(-x)-x[notis, sel to system clipboard, xterm title]' 45 '(-z)-z[in order fuzzy filters]' 46 '(-0)-0[use null separator in picker mode]' 47 '(-h)-h[show program help]' 48 '*:filename:_files' 49 ) 50 _arguments -S -s $args