aboutsummaryrefslogtreecommitdiffstats
path: root/misc/auto-completion/zsh/_nnn
blob: 0de2bda9359d1aa7ac08fb4521116f9244c7a6a5 (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
35
36
37
38
39
40
41
42
43
44
45
46
#compdef nnn
#
# Completion definition for nnn.
#
# Author:
#   Arun Prakash Jana <engineerarun@gmail.com>
#

setopt localoptions noshwordsplit noksharrays
local -a args
args=(
    '(-a)-a[auto-create NNN_FIFO]'
    '(-A)-A[disable dir auto-select]'
    '(-b)-b[bookmark key to open]:key char'
    '(-c)-c[cli-only opener]'
    '(-C)-C[color by context]'
    '(-d)-d[start in detail mode]'
    '(-D)-D[dirs in context color]'
    '(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
    '(-E)-E[use EDITOR for undetached edits]'
    '(-f)-f[use readline history file]'
    '(-F)-F[show fortune]'
    '(-g)-g[regex filters]'
    '(-H)-H[show hidden files]'
    '(-J)-J[no auto-proceed on select]'
    '(-K)-K[detect key collision]'
    '(-l)-l[lines to move per scroll]:val'
    '(-n)-n[start in type-to-nav mode]'
    '(-o)-o[open files only on Enter]'
    '(-p)-p[copy selection to file]:file name'
    '(-P)-P[plugin key to runn]:key char'
    '(-Q)-Q[disable quit confirmation]'
    '(-r)-r[show cp, mv progress (Linux-only)]'
    '(-R)-R[disable rollover at edges]'
    '(-s)-s[load session]:session name'
    '(-S)-S[persistent session]'
    '(-t)-t[timeout to lock]:seconds'
    '(-T)-T[a d e r s t v]:key'
    '(-u)-u[use selection (no prompt)]'
    '(-V)-V[show program version and exit]'
    '(-w)-C[hardware cursor mode]'
    '(-x)-x[notis, sel to system clipboard]'
    '(-h)-h[show program help]'
    '*:filename:_files'
)
_arguments -S -s $args