aboutsummaryrefslogtreecommitdiffstats
path: root/misc/auto-completion/zsh/_nnn
blob: 777894f5cdca329a252c8357c3736640f9be9f7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#compdef nnn
#
# Completion definition for nnn.
#
# Author:
#   Arun Prakash Jana <engineerarun@gmail.com>
#

setopt localoptions noshwordsplit noksharrays
local -a args
args=(
    '(-a)-a[use access time]'
    '(-b)-b[bookmark key to open]:key char'
    '(-c)-c[cli-only opener]'
    '(-d)-d[start in detail mode]'
    '(-e)-e[load session]:session name'
    '(-E)-E[use EDITOR for undetached edits]'
    '(-g)-g[regex filters]'
    '(-H)-H[show hidden files]'
    '(-i)-i[start in navigate-as-you-type mode]'
    '(-K)-K[detect key collision]'
    '(-n)-n[use version compare to sort files]'
    '(-o)-o[open files only on Enter]'
    '(-p)-p[copy selection to file]:file name'
    '(-r)-r[show cp, mv progress (Linux-only)]'
    '(-R)-R[disable rollover at edges]'
    '(-S)-S[start in disk usage analyzer mode]'
    '(-t)-t[disable dir auto-select]'
    '(-v)-v[show program version and exit]'
    '(-x)-x[notis, sel to system clipboard]'
    '(-h)-h[show program help]'
    '*:filename:_files'
)
_arguments -S -s $args