mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Option -T obsoletes option -v
This commit is contained in:
parent
85379a703b
commit
f4786da9bc
|
@ -32,7 +32,6 @@ _nnn ()
|
||||||
-S
|
-S
|
||||||
-t
|
-t
|
||||||
-T
|
-T
|
||||||
-v
|
|
||||||
-V
|
-V
|
||||||
-x
|
-x
|
||||||
-h
|
-h
|
||||||
|
|
|
@ -31,7 +31,6 @@ complete -c nnn -s s -r -d 'load session by name' -x -a '@\t"last session" (ls $
|
||||||
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
||||||
complete -c nnn -s t -r -d 'timeout in seconds to lock'
|
complete -c nnn -s t -r -d 'timeout in seconds to lock'
|
||||||
complete -c nnn -s T -r -d 'a d e r s t v'
|
complete -c nnn -s T -r -d 'a d e r s t v'
|
||||||
complete -c nnn -s v -d 'use version compare to sort files'
|
|
||||||
complete -c nnn -s V -d 'show program version and exit'
|
complete -c nnn -s V -d 'show program version and exit'
|
||||||
complete -c nnn -s x -d 'notis, sel to system clipboard'
|
complete -c nnn -s x -d 'notis, sel to system clipboard'
|
||||||
complete -c nnn -s h -d 'show program help'
|
complete -c nnn -s h -d 'show program help'
|
||||||
|
|
|
@ -29,7 +29,6 @@ args=(
|
||||||
'(-S)-S[start in disk usage analyzer mode]'
|
'(-S)-S[start in disk usage analyzer mode]'
|
||||||
'(-t)-t[timeout to lock]:seconds'
|
'(-t)-t[timeout to lock]:seconds'
|
||||||
'(-T)-T[a d e r s t v]:key'
|
'(-T)-T[a d e r s t v]:key'
|
||||||
'(-v)-v[use version compare to sort files]'
|
|
||||||
'(-V)-V[show program version and exit]'
|
'(-V)-V[show program version and exit]'
|
||||||
'(-x)-x[notis, sel to system clipboard]'
|
'(-x)-x[notis, sel to system clipboard]'
|
||||||
'(-h)-h[show program help]'
|
'(-h)-h[show program help]'
|
||||||
|
|
4
nnn.1
4
nnn.1
|
@ -25,7 +25,6 @@
|
||||||
.Op Ar -S
|
.Op Ar -S
|
||||||
.Op Ar -t secs
|
.Op Ar -t secs
|
||||||
.Op Ar -T key
|
.Op Ar -T key
|
||||||
.Op Ar -v
|
|
||||||
.Op Ar -V
|
.Op Ar -V
|
||||||
.Op Ar -x
|
.Op Ar -x
|
||||||
.Op Ar -h
|
.Op Ar -h
|
||||||
|
@ -115,9 +114,6 @@ supports the following options:
|
||||||
sort order
|
sort order
|
||||||
keys: 'a'u / 'd'u / 'e'xtension / 'r'everse / 's'ize / 't'ime / 'v'ersion
|
keys: 'a'u / 'd'u / 'e'xtension / 'r'everse / 's'ize / 't'ime / 'v'ersion
|
||||||
.Pp
|
.Pp
|
||||||
.Fl v
|
|
||||||
use case-insensitive version compare to sort files
|
|
||||||
.Pp
|
|
||||||
.Fl V
|
.Fl V
|
||||||
show version and exit
|
show version and exit
|
||||||
.Pp
|
.Pp
|
||||||
|
|
|
@ -6490,7 +6490,6 @@ static void usage(void)
|
||||||
" -S du mode\n"
|
" -S du mode\n"
|
||||||
" -t secs timeout to lock\n"
|
" -t secs timeout to lock\n"
|
||||||
" -T key sort order [a/d/e/r/s/t/v]\n"
|
" -T key sort order [a/d/e/r/s/t/v]\n"
|
||||||
" -v version sort\n"
|
|
||||||
" -V show version\n"
|
" -V show version\n"
|
||||||
" -x notis, sel to system clipboard\n"
|
" -x notis, sel to system clipboard\n"
|
||||||
" -h show help\n\n"
|
" -h show help\n\n"
|
||||||
|
@ -6639,7 +6638,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
while ((opt = (env_opts_id > 0
|
while ((opt = (env_opts_id > 0
|
||||||
? env_opts[--env_opts_id]
|
? env_opts[--env_opts_id]
|
||||||
: getopt(argc, argv, "aAb:cdeEgHKnop:QrRs:St:T:vVxh"))) != -1) {
|
: getopt(argc, argv, "aAb:cdeEgHKnop:QrRs:St:T:Vxh"))) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'a':
|
case 'a':
|
||||||
cfg.mtime = 0;
|
cfg.mtime = 0;
|
||||||
|
@ -6727,9 +6726,6 @@ int main(int argc, char *argv[])
|
||||||
if (env_opts_id < 0)
|
if (env_opts_id < 0)
|
||||||
sort = optarg[0];
|
sort = optarg[0];
|
||||||
break;
|
break;
|
||||||
case 'v':
|
|
||||||
namecmpfn = &xstrverscasecmp;
|
|
||||||
break;
|
|
||||||
case 'V':
|
case 'V':
|
||||||
fprintf(stdout, "%s\n", VERSION);
|
fprintf(stdout, "%s\n", VERSION);
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue