2017-09-02 06:53:19 +00:00
|
|
|
#compdef nnn
|
|
|
|
#
|
|
|
|
# Completion definition for nnn.
|
|
|
|
#
|
|
|
|
# Author:
|
|
|
|
# Arun Prakash Jana <engineerarun@gmail.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
setopt localoptions noshwordsplit noksharrays
|
|
|
|
local -a args
|
|
|
|
args=(
|
2020-05-25 23:51:46 +00:00
|
|
|
'(-a)-a[auto-create NNN_FIFO]'
|
2020-01-08 22:04:10 +00:00
|
|
|
'(-A)-A[disable dir auto-select]'
|
2018-12-09 03:06:00 +00:00
|
|
|
'(-b)-b[bookmark key to open]:key char'
|
2019-11-30 12:44:39 +00:00
|
|
|
'(-c)-c[cli-only opener]'
|
2020-08-04 15:06:19 +00:00
|
|
|
'(-C)-C[color by context]'
|
2019-08-16 17:45:29 +00:00
|
|
|
'(-d)-d[start in detail mode]'
|
2020-09-01 17:36:26 +00:00
|
|
|
'(-D)-D[dirs in context color]'
|
2020-01-17 13:36:42 +00:00
|
|
|
'(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
|
2019-11-30 12:44:39 +00:00
|
|
|
'(-E)-E[use EDITOR for undetached edits]'
|
2020-03-20 16:54:15 +00:00
|
|
|
'(-f)-f[use readline history file]'
|
2019-12-14 13:30:09 +00:00
|
|
|
'(-g)-g[regex filters]'
|
2019-08-16 17:45:29 +00:00
|
|
|
'(-H)-H[show hidden files]'
|
2021-10-17 06:27:38 +00:00
|
|
|
'(-i)-i[show file info on hover]'
|
2020-09-01 17:36:26 +00:00
|
|
|
'(-J)-J[no auto-proceed on select]'
|
2019-10-11 15:29:22 +00:00
|
|
|
'(-K)-K[detect key collision]'
|
2020-05-10 05:51:37 +00:00
|
|
|
'(-l)-l[lines to move per scroll]:val'
|
2020-04-12 13:31:02 +00:00
|
|
|
'(-n)-n[start in type-to-nav mode]'
|
2019-08-16 18:10:43 +00:00
|
|
|
'(-o)-o[open files only on Enter]'
|
2018-12-09 03:06:00 +00:00
|
|
|
'(-p)-p[copy selection to file]:file name'
|
2020-05-18 03:35:19 +00:00
|
|
|
'(-P)-P[plugin key to runn]:key char'
|
2019-12-14 17:58:13 +00:00
|
|
|
'(-Q)-Q[disable quit confirmation]'
|
2019-08-23 14:48:17 +00:00
|
|
|
'(-r)-r[show cp, mv progress (Linux-only)]'
|
2019-12-01 17:30:06 +00:00
|
|
|
'(-R)-R[disable rollover at edges]'
|
2019-12-20 10:19:13 +00:00
|
|
|
'(-s)-s[load session]:session name'
|
2020-04-24 04:06:33 +00:00
|
|
|
'(-S)-S[persistent session]'
|
2020-01-17 13:36:42 +00:00
|
|
|
'(-t)-t[timeout to lock]:seconds'
|
2020-03-17 21:05:05 +00:00
|
|
|
'(-T)-T[a d e r s t v]:key'
|
2021-03-17 17:36:08 +00:00
|
|
|
'(-u)-u[use selection (no prompt)]'
|
2020-10-31 15:17:07 +00:00
|
|
|
'(-U)-U[show user and group]'
|
2019-12-28 05:45:38 +00:00
|
|
|
'(-V)-V[show program version and exit]'
|
2020-08-04 15:06:19 +00:00
|
|
|
'(-w)-C[hardware cursor mode]'
|
2021-04-13 10:50:28 +00:00
|
|
|
'(-x)-x[notis, sel to system clipboard, xterm title]'
|
2019-08-16 17:45:29 +00:00
|
|
|
'(-h)-h[show program help]'
|
2018-03-02 12:01:11 +00:00
|
|
|
'*:filename:_files'
|
2017-09-02 06:53:19 +00:00
|
|
|
)
|
|
|
|
_arguments -S -s $args
|