- [use cd .....](#use-cd-)
- [cd on quit](#cd-on-quit)
- [customize nlay](#customize-nlay)
- - [copy current file path to clipboard](#copy-current-file-path-to-clipboard)
+ - [copy file path to clipboard](#copy-file-path-to-clipboard)
+ - [file copy. move. delete](#file-copy-move-delete)
- [boost chdir prompt](#boost-chdir-prompt)
- [change file associations](#change-file-associations)
- [Why fork?](#why-fork)
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:
-
-The `Insert` key, 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 4 ways to reset a filter: `^L`, an empty filter expression, a search with no results or an extra backspace at the filter prompt (like vi).
If you want to list all matches starting with the filter expression (a common use case), start the expression with a `^` (caret) symbol.
nlay is a tiny standalone media type *player* by itself. To know how to customize or extend its functionality, please visit [nlay on wiki](https://github.com/jarun/nnn/wiki/all-about-nlay).
-#### copy current file path to clipboard
+#### copy file path to clipboard
nnn can pipe the absolute path of the current file to a copier script. For example, you can use `xsel` on Linux or `pbcopy` on OS X.
are shown instantly (search-as-you-type).
.Pp
Filters do not stack on top of each other. They are applied anew
-every time. There are 4 ways to reset a filter:
-.Pp
-The \fIInsert\fR key, an empty filter expression, a search with no results or an
-extra backspace at the filter prompt (like vi).
+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).
.Pp
If you want to list all matches starting with the filter expression (a common
use case), start the expression with a
redraw(path);
printprompt(ln);
break;
+ case CONTROL('L'):
+ cur = oldcur;
+ *ch = CONTROL('L');
+ goto end;
default:
wln[len++] = (wchar_t)*ch;
wln[len] = '\0';
redraw(path);
printprompt(ln);
break;
- case KEY_IC:
- cur = oldcur;
- *ch = CONTROL('L');
- goto end;
case KEY_DOWN: // fallthrough
case KEY_UP: // fallthrough
case KEY_LEFT: // fallthrough