README.md | 11 ++++++++--- nnn.1 | 12 ++++-------- diff --git a/README.md b/README.md index 98b367b088d7cc5aee9f7108133c7549d8059f20..7112f867438391bf093db8a1c42888b5ad8e49b5 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ 5034 vaio 20 0 70360 58764 2244 S 0.0 0.7 0:00.80 ncdu / 4949 vaio 20 0 17520 4224 2584 S 0.0 0.1 0:00.54 nnn -S / ``` -`nnn` vs. mc vs. ranger memory usage while viewing a directory with 13790 files, sorted by size: +`nnn` vs. midnight commander vs. ranger memory usage while viewing a directory with 13790 files, sorted by size: ``` PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND @@ -256,9 +256,14 @@ #### Filters 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: ^L, a search with no matches or an extra backspace at the filter prompt (like vi). +There are 3 ways to reset a filter: +- pressing ^L +- a search with no matches +- an extra backspace at the filter prompt (like vi) -Common examples: If you want to list all matches starting with the filter expression, start the expression with a `^` (caret) symbol. Type `\.mkv` to list all MKV files. +Common use cases: +- to list all matches starting with the filter expression, start the expression with a `^` (caret) symbol +- type `\.mkv` to list all MKV files If `nnn` is invoked as root the default filter will also match hidden files. diff --git a/nnn.1 b/nnn.1 index 1141ea80b01ba4634170565a4def7771c9d946ec..5563d4c8b3cbfa81a463d09003bd08aa47563f2c 100644 --- a/nnn.1 +++ b/nnn.1 @@ -171,15 +171,11 @@ .Sh FILTERS 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: \fI^L\fR, a search with no matches or an -extra backspace at the filter prompt (like vi). +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). .Pp -Common examples: If you want to list all matches starting with the filter -expression, start the expression with a -.Pa ^ -(caret) symbol. Type -.Pa \.mkv -to list all MKV files. +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. .Pp If .Nm