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=(
|
2019-08-30 15:25:23 +00:00
|
|
|
'(-a)-a[use access time]'
|
2018-12-09 03:06:00 +00:00
|
|
|
'(-b)-b[bookmark key to open]:key char'
|
2019-10-06 13:27:15 +00:00
|
|
|
'(-c)-d[cli-only opener]'
|
2019-08-16 17:45:29 +00:00
|
|
|
'(-d)-d[start in detail mode]'
|
2019-10-06 13:27:15 +00:00
|
|
|
'(-f)-d[run filter as cmd on prompt key]'
|
2019-08-16 17:45:29 +00:00
|
|
|
'(-H)-H[show hidden files]'
|
2017-09-02 06:53:19 +00:00
|
|
|
'(-i)-i[start in navigate-as-you-type mode]'
|
2019-10-11 15:29:22 +00:00
|
|
|
'(-K)-K[detect key collision]'
|
2019-07-14 17:30:14 +00:00
|
|
|
'(-n)-n[use version compare to sort files]'
|
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'
|
2019-08-23 14:48:17 +00:00
|
|
|
'(-r)-r[show cp, mv progress (Linux-only)]'
|
2019-02-05 19:08:55 +00:00
|
|
|
'(-s)-s[use substring match for filters]'
|
2017-09-02 06:53:19 +00:00
|
|
|
'(-S)-S[start in disk usage analyzer mode]'
|
2019-08-16 18:37:38 +00:00
|
|
|
'(-t)-t[disable dir auto-select]'
|
2017-09-02 06:53:19 +00:00
|
|
|
'(-v)-v[show program version and exit]'
|
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
|