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