nnn/misc/auto-completion/zsh/_nnn

32 lines
917 B
Text
Raw Normal View History

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