]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #73: How to discard changes and exit new/rename prompt
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 29 Dec 2017 05:49:37 +0000 (11:19 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 29 Dec 2017 05:49:37 +0000 (11:19 +0530)
README.md
nnn.1

index 7b225e00543b07df7091f95e918437ecdfa2798e..c44d39d6b11cd4f0274c2a6384d340e670109ec7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -259,7 +259,7 @@ Help & settings, file details, media info and archive listing are shown in the P
 Filters support regexes to instantly (search-as-you-type) list the matching entries in the current directory.
 
 There are 3 ways to reset a filter:
-- pressing <kbd>^L</kbd>
+- pressing <kbd>^L</kbd> (at the new/rename prompt <kbd>^L</kbd> followed by <kbd>Enter</kbd> discards all changes and exits prompt)
 - a search with no matches
 - an extra backspace at the filter prompt (like vi)
 
diff --git a/nnn.1 b/nnn.1
index 5563d4c8b3cbfa81a463d09003bd08aa47563f2c..95b0ed2bf25d678115980155fbdf650e74ad7787 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -171,8 +171,9 @@ instructions.
 Filters support regexes to instantly (search-as-you-type) list the matching
 entries in the current directory.
 .Pp
-There are 3 ways to reset a filter: (1) pressing \fI^L\fR, (2) a search with no matches or
-(3) an extra backspace at the filter prompt (like vi).
+There are 3 ways to reset a filter: (1) pressing \fI^L\fR (at the new/rename
+prompt \fI^L\fR followed by \fIEnter\fR discards all changes and exits prompt),
+(2) a search with no matches or (3) an extra backspace at the filter prompt (like vi).
 .Pp
 Common use cases: (1) To list all matches starting with the filter expression,
 start the expression with a '^' (caret) symbol. (2) Type '\\.mkv' to list all MKV files.