nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b91f7a9600f474c80644e8305c0e1f037cd7db96
parent 94781f7977c855db2e85d0cbb92c1c2595a41259
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 11 Jan 2020 23:53:32 +0530

Fix not waiting for command next time if non-Enter keys are pressed

Diffstat:
MREADME.md | 14+++++++-------
Msrc/nnn.c | 2+-
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -21,7 +21,7 @@ It runs smoothly on the Raspberry Pi, Termux [on Android](https://www.youtube.com/watch?v=AbaauM7gUJw), Linux, macOS, BSD, Haiku, Cygwin, WSL and works seamlessly with DEs and GUI utilities. -Visit the [Wiki](https://github.com/jarun/nnn/wiki) for concepts, program usage, how-tos and troubleshooting. +[Wiki](https://github.com/jarun/nnn/wiki). ## Features @@ -50,22 +50,22 @@ Visit the [Wiki](https://github.com/jarun/nnn/wiki) for concepts, program usage, - Remote mounts (needs sshfs, rclone) - Familiar shortcuts (arrows, <kbd>~</kbd>, <kbd>-</kbd>, <kbd>@</kbd>), quick reference - CD on quit (*easy* shell integration) -- Sorting +- Search + - Instant filtering with *search-as-you-type* + - Regex and substring (default) matches + - Subtree search plugin to open or edit files +- Sort - Ordered pure numeric names by default (visit _/proc_) - Case-insensitive version (_aka_ natural) sort - By file name, modification/access time, size, extension - Reverse sort -- Search - - Instant filtering with *search-as-you-type* - - Regex and substring (default) matches - - Subtree search to open or edit files (using plugin) - Mimes - Open with desktop opener or specify a custom app - Create, list, extract, mount (FUSE based) archives - Option to open all text files in EDITOR - Information - Detailed file information - - Media information (using plugin) + - Media information plugin - Convenience - Run plugins and custom commands with hotkeys - FreeDesktop compliant trash (needs trash-cli) diff --git a/src/nnn.c b/src/nnn.c @@ -1379,7 +1379,7 @@ static int spawn(char *file, char *arg1, char *arg2, const char *dir, uchar flag if (flag & F_NORMAL) { if (flag & F_CONFIRM) { printf("%s", messages[MSG_CONTINUE]); - getchar(); + while (getchar() != '\n'); } refresh();