diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-06-07 03:04:47 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-06-07 03:04:47 +0530 |
commit | a9a8b30bdf5621f8732ed6d59934d7f0fbeabe20 (patch) | |
tree | bac89954d0866cf1cafb6f180c7039dad8857007 | |
parent | 6a9640afdf07769c9be891cfae6660179b403db3 (diff) | |
download | nnn-a9a8b30bdf5621f8732ed6d59934d7f0fbeabe20.tar.gz |
When filter is empty, open file on Enter
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | nnn.1 | 5 | ||||
-rw-r--r-- | nnn.c | 1 |
3 files changed, 3 insertions, 5 deletions
@@ -188,7 +188,7 @@ Right, Enter, l, ^M | Open file or enter dir Filters support regexes to display only the matched entries in the current directory view. This effectively allows searching through the directory tree for a particular entry. Matching entries are shown instantly (search-as-you-type). -Filters do not stack on top of each other. They are applied anew every time. There are 4 ways to reset a filter: <kbd>^L</kbd>, an empty filter expression, a search with no results or an extra backspace at the filter prompt (like vi). +Filters do not stack on top of each other. They are applied anew every time. There are 3 ways to reset a filter: <kbd>^L</kbd>, a search with no matches or an extra backspace at the filter prompt (like vi). Examples: If you want to list all matches starting with the filter expression (a common use case), start the expression with a `^` (caret) symbol. To list all MKV files type `\.mkv`. @@ -139,9 +139,8 @@ searching through the directory tree for a particular entry. Matching entries are shown instantly (\fIsearch-as-you-type\fR). .Pp Filters do not stack on top of each other. They are applied anew -every time. There are 4 ways to reset a filter: \fI^L\fR, an empty filter -expression, a search with no results or an extra backspace at the filter prompt -(like vi). +every time. There are 3 ways to reset a filter: \fI^L\fR, a search with no +matches or an extra backspace at the filter prompt (like vi). .Pp If you want to list all matches starting with the filter expression (a common use case), start the expression with a @@ -727,7 +727,6 @@ readln(char *path) case '\r': // with nonl(), this is ENTER key value if (len == 1) { cur = oldcur; - *ch = CONTROL('L'); goto end; } |