README.md | 10 +++++----- misc/auto-completion/fish/nnn.fish | 2 +- misc/auto-completion/zsh/_nnn | 2 +- nnn.1 | 12 ++++++------ src/nnn.c | 18 +++++++++--------- diff --git a/README.md b/README.md index 88329c405e0ec309fe7c2783006aa777220f1468..e3301c20da58fe205cd86c5ce371ad5097204820 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Donate via PayPal!

-

navigate-as-you-type & du (click to see demo video)

+

type-to-nav & du (click to see demo video)

## Introduction @@ -25,10 +25,10 @@ ## Black magic! :dark_sunglasses: 1. Load, sort, filter thousands of files instantly -2. Turbo navigate with automatic dir selection +2. Type to navigate with automatic dir selection 3. Select files from anywhere (not just a single dir) 4. Edit and preview markdown, man page, html -5. Open a file and auto-proceed to the next +5. Open a file and auto-advance to the next 6. Export (filtered) list of visible files 7. Find files by mime-type and list in `nnn` 8. Unlimited bookmarks, plugins, commands with custom hotkeys @@ -79,13 +79,13 @@ - Light (default), detail - Disk usage analyzer (block/apparent) - File picker, (neo)vim plugin - Navigation - - *Navigate-as-you-type* with dir auto-select + - *Type-to-nav* mode with dir auto-select - Contexts (_aka_ tabs/workspaces) with custom colors - Sessions, bookmarks with hotkeys; pin and visit a dir - Remote mounts (needs sshfs, rclone) - Familiar shortcuts (arrows, ~, -, @), quick reference - CD on quit (*easy* shell integration) - - Auto-proceed on opening files + - Auto-advance on opening files - Search - Instant filtering with *search-as-you-type* - Regex (POSIX/PCRE) and string (default) filters diff --git a/misc/auto-completion/fish/nnn.fish b/misc/auto-completion/fish/nnn.fish index 82dfc36feebd9aa2ba571432af0a6f08a2dda38e..fb476fd7af9ee3ba7c5dbc1be73ac0506ecaba99 100644 --- a/misc/auto-completion/fish/nnn.fish +++ b/misc/auto-completion/fish/nnn.fish @@ -22,7 +22,7 @@ complete -c nnn -s F -d 'show fortune' complete -c nnn -s g -d 'regex filters' complete -c nnn -s H -d 'show hidden files' complete -c nnn -s K -d 'detect key collision' -complete -c nnn -s n -d 'start in navigate-as-you-type mode' +complete -c nnn -s n -d 'start in type-to-nav mode' complete -c nnn -s o -d 'open files only on Enter' complete -c nnn -s p -r -d 'copy selection to file' -a '-\tstdout' complete -c nnn -s Q -d 'disable quit confirmation' diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn index d40ea684aec425a824be9bb28741d3550bce73ce..7aed8a8e5219ef10515593f4853cdea41701c9a2 100644 --- a/misc/auto-completion/zsh/_nnn +++ b/misc/auto-completion/zsh/_nnn @@ -20,7 +20,7 @@ '(-F)-F[show fortune]' '(-g)-g[regex filters]' '(-H)-H[show hidden files]' '(-K)-K[detect key collision]' - '(-n)-n[start in navigate-as-you-type mode]' + '(-n)-n[start in type-to-nav mode]' '(-o)-o[open files only on Enter]' '(-p)-p[copy selection to file]:file name' '(-Q)-Q[disable quit confirmation]' diff --git a/nnn.1 b/nnn.1 index 2af1a72f433e7a5ae42070e455cec2d4d829c6f8..cc74b0e017b9e53b739cb9c262ca37920a5f8078 100644 --- a/nnn.1 +++ b/nnn.1 @@ -34,7 +34,7 @@ .Sh DESCRIPTION .Nm (Nnn's Not Noice) is a performance-optimized, feature-packed fork of noice (http://git.2f30.org/noice/) with seamless desktop -integration, simplified navigation, \fInavigate-as-you-type\fR mode with +integration, simplified navigation, \fItype-to-nav\fR mode with auto select, disk usage analyzer mode, bookmarks, contexts, application launcher, familiar navigation shortcuts, subshell spawning and much more.It remains a simple and efficient file manager that stays out of your way. @@ -54,7 +54,7 @@ .Nm supports the following options: .Pp .Fl A - disable directory auto-select in navigate-as-you-type mode + disable directory auto-select in type-to-nav mode .Pp .Fl "b key" specify bookmark key to open @@ -87,7 +87,7 @@ .Fl K test for keybind collision .Pp .Fl n - start in navigate-as-you-type mode + start in type-to-nav mode .Pp .Fl o open files only on Enter key @@ -197,13 +197,13 @@ ------ + --------------------------------------- .Ed .Pp Additional special keys at \fBempty filter prompt\fR -in \fBnav-as-you-type\fR mode: +in \fBtype-to-nav\fR mode: .Bd -literal ------ + ------------------------ Key | Function ------ + ------------------------ ' | Go to first non-dir file - + | Toggle proceed on open + + | Toggle auto-advance , | Pin CWD - | Go to last visited dir . | Show hidden files @@ -228,7 +228,7 @@ (3) Use '.*' to match any character (\fIsort of\fR fuzzy search). .br (4) Exclude filenames having 'nnn' (compiled with PCRE lib): '^(?!nnn)' .Pp -In the \fInavigate-as-you-type\fR mode directories are opened in filter +In the \fItype-to-nav\fR mode directories are opened in filter mode, allowing continuous navigation. .br When there's a unique match and it's a directory, diff --git a/src/nnn.c b/src/nnn.c index 397358dbb3f15a91db8e1bf781b5df0343cc1781..b9cc70c27f8399148cbd3c1ebcf6104f41297532 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -262,7 +262,7 @@ uint dircolor : 1; /* Current status of dir color */ uint picker : 1; /* Write selection to user-specified file */ uint pickraw : 1; /* Write selection to sdtout before exit */ uint nonavopen : 1; /* Open file on right arrow or `l` */ - uint autoselect : 1; /* Auto-select dir in nav-as-you-type mode */ + uint autoselect : 1; /* Auto-select dir in type-to-nav mode */ uint metaviewer : 1; /* Index of metadata viewer in utils[] */ uint useeditor : 1; /* Use VISUAL to open text files */ uint runplugin : 1; /* Choose plugin mode */ @@ -2562,7 +2562,7 @@ if (cfg.filtermode) { switch (*ch) { case '\'': // fallthrough /* Go to first non-dir file */ - case '+': // fallthrough /* Toggle proceed on open */ + case '+': // fallthrough /* Toggle auto-advance */ case ',': // fallthrough /* Pin CWD */ case '-': // fallthrough /* Visit last visited dir */ case '.': // fallthrough /* Show hidden files */ @@ -3712,7 +3712,7 @@ char *dir; /* There is no going back */ if (istopdir(path)) { - /* Continue in navigate-as-you-type mode, if enabled */ + /* Continue in type-to-nav mode, if enabled */ if (cfg.filtermode && presel) *presel = FILTER; return NULL; @@ -4085,14 +4085,14 @@ "9g ^A Top%-18c. F5 Toggle hidden\n" "9G ^E End%-21c0 Lock terminal\n" "9b ^/ Bookmark key%-12c, Pin CWD\n" "a1-4 Context 1-4%-7c(Sh)Tab Cycle context\n" - "c/ Filter%-17c^N Nav-as-you-type toggle\n" + "c/ Filter%-17c^N Toggle type-to-nav\n" "aEsc Exit prompt%-12c^L Redraw/clear prompt\n" - "c? Help, conf%-14c+ Toggle proceed on open\n" + "c? Help, conf%-14c+ Toggle auto-advance\n" "cq Quit context%-11c^G QuitCD\n" "b^Q Quit%-20cQ Quit with err\n" "1FILES\n" "9o ^O Open with...%-12cn Create new/link\n" - "9f ^F File details%-12cd Detail view toggle\n" + "9f ^F File details%-12cd Detail mode toggle\n" "b^R Rename/dup%-14cr Batch rename\n" "cz Archive%-17ce Edit in EDITOR\n" "5Space ^J (Un)select%-11cm ^K Mark range/clear\n" @@ -5718,7 +5718,7 @@ } /* In case of successful operation, reload contents */ - /* Continue in navigate-as-you-type mode, if enabled */ + /* Continue in type-to-nav mode, if enabled */ if ((cfg.filtermode || filterset()) && !refresh) break; @@ -6202,7 +6202,7 @@ else r = FALSE; } - /* Continue in navigate-as-you-type mode, if enabled */ + /* Continue in type-to-nav mode, if enabled */ if (cfg.filtermode) presel = FILTER; @@ -6567,7 +6567,7 @@ " -F show fortune\n" " -g regex filters [default: string]\n" " -H show hidden files\n" " -K detect key collision\n" - " -n nav-as-you-type mode\n" + " -n type-to-nav mode\n" " -o open files only on Enter\n" " -p file selection file [stdout if '-']\n" " -Q no quit confirmation\n"