_nnn (1523B)
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 readline history file]' 23 '(-g)-g[regex filters]' 24 '(-H)-H[show hidden files]' 25 '(-i)-i[show current file info]' 26 '(-J)-J[no auto-advance on selection]' 27 '(-K)-K[detect key collision and exit]' 28 '(-l)-l[lines to move per scroll]:val' 29 '(-n)-n[start in type-to-nav mode]' 30 '(-o)-o[open files only on Enter]' 31 '(-p)-p[copy selection to file]:file name' 32 '(-P)-P[plugin key to run]:key char' 33 '(-Q)-Q[disable quit confirmation]' 34 '(-r)-r[show cp, mv progress (Linux-only)]' 35 '(-R)-R[disable rollover at edges]' 36 '(-s)-s[load session]:session name' 37 '(-S)-S[persistent session]' 38 '(-t)-t[timeout to lock]:seconds' 39 '(-T)-T[a d e r s t v]:key' 40 '(-u)-u[use selection (no prompt)]' 41 '(-U)-U[show user and group]' 42 '(-V)-V[show program version and exit]' 43 '(-x)-x[notis, sel to system clipboard, xterm title]' 44 '(-h)-h[show program help]' 45 '*:filename:_files' 46 ) 47 _arguments -S -s $args