aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-25 22:33:38 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-25 22:33:38 +0530
commit1003c0f8fce621d57c0d86c855898048066a6dd4 (patch)
treedab0f07492b8ca583636bd30ba026b9adce6a94f /src
parent06920d7d9dff2a8f00f5aaf7d657109219fe2edf (diff)
downloadnnn-1003c0f8fce621d57c0d86c855898048066a6dd4.tar.gz
Option n - nav as you type, V - version sort
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nnn.c b/src/nnn.c
index a420777..d67ea96 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5495,9 +5495,8 @@ static void usage(void)
" -E use EDITOR for undetached edits\n"
" -g regex filters [default: string]\n"
" -H show hidden files\n"
- " -i nav-as-you-type mode\n"
" -K detect key collision\n"
- " -n version sort\n"
+ " -n nav-as-you-type mode\n"
" -o open files on Enter\n"
" -p file selection file [stdout if '-']\n"
" -Q no quit confirmation\n"
@@ -5507,6 +5506,7 @@ static void usage(void)
" -S du mode\n"
" -t no dir auto-select\n"
" -v show version\n"
+ " -V version sort\n"
" -x notis, sel to system clipboard\n"
" -h show help\n\n"
"v%s\n%s\n", __func__, VERSION, GENERAL_INFO);
@@ -5650,7 +5650,7 @@ int main(int argc, char *argv[])
bool progress = FALSE;
#endif
- while ((opt = getopt(argc, argv, "HSKiab:cdEgnop:QrRs:tvxh")) != -1) {
+ while ((opt = getopt(argc, argv, "HSKab:cdEgnop:QrRs:tvVxh")) != -1) {
switch (opt) {
case 'S':
cfg.blkorder = 1;
@@ -5660,9 +5660,6 @@ int main(int argc, char *argv[])
cfg.showdetail = 1;
printptr = &printent_long;
break;
- case 'i':
- cfg.filtermode = 1;
- break;
case 'a':
cfg.mtime = 0;
break;
@@ -5683,7 +5680,7 @@ int main(int argc, char *argv[])
cfg.showhidden = 1;
break;
case 'n':
- cmpfn = &xstrverscasecmp;
+ cfg.filtermode = 1;
break;
case 'o':
cfg.nonavopen = 1;
@@ -5728,6 +5725,9 @@ int main(int argc, char *argv[])
case 'v':
fprintf(stdout, "%s\n", VERSION);
return _SUCCESS;
+ case 'V':
+ cmpfn = &xstrverscasecmp;
+ break;
case 'x':
cfg.x11 = 1;
break;