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]'
|
2022-06-14 13:49:41 +05:30
|
|
|
'(-A)-A[disable dir auto-enter]'
|
2018-12-09 08:36:00 +05:30
|
|
|
'(-b)-b[bookmark key to open]:key char'
|
2022-07-29 22:35:43 +05:30
|
|
|
'(-B)-B[use bsdtar for archives]'
|
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]'
|
2024-05-27 06:59:17 +00:00
|
|
|
'(-F)-F[fifo notification mode]:mode:(( 0\:"notify as previewer" 1\:"notify as explorer" ))'
|
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]'
|
2021-10-23 19:18:12 +05:30
|
|
|
'(-i)-i[show current file info]'
|
2022-06-15 19:48:11 +05:30
|
|
|
'(-J)-J[no auto-advance on selection]'
|
2022-09-12 23:04:54 +02:00
|
|
|
'(-K)-K[detect key collision and exit]'
|
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'
|
2021-11-27 11:57:45 +07:00
|
|
|
'(-P)-P[plugin key to run]: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'
|
2024-05-27 06:59:17 +00:00
|
|
|
'(-T)-T[sort order]:key:(( a\:"apparent disk usasge" d\:"disk usage" e\:"extension" r\:"reverse" s\:"size" t\:"time" v\:"version" ))'
|
2021-03-17 23:06:08 +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]'
|
2021-04-13 16:20:28 +05:30
|
|
|
'(-x)-x[notis, sel to system clipboard, xterm title]'
|
2024-08-25 09:30:59 +05:30
|
|
|
'(-0)-0[use null separator in picker mode]'
|
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
|