diff options
| author | 2020-01-12 02:46:19 +0530 | |
|---|---|---|
| committer | 2020-01-12 02:46:19 +0530 | |
| commit | bb3d79ce216b42cd71223860a0323c6afdd39d99 (patch) | |
| tree | a00535cd66dd850c4971fe99918c28acc86e4142 | |
| parent | 3c69e6ccac5fece5089d816de7a36fc1eb3f74e6 (diff) | |
| download | nnn-bb3d79ce216b42cd71223860a0323c6afdd39d99.tar.gz | |
Go to top when last saved filter is applied
| -rw-r--r-- | plugins/README.md | 2 | ||||
| -rw-r--r-- | src/nnn.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/README.md b/plugins/README.md index d850e54..853c5d7 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -65,7 +65,7 @@ Plugins are installed to `${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins`. ## Ways to invoke a plugin -1. Execute directly with <kbd>;key</kbd> or <kbd>xkey</kbd>: +1. Fire directly with <kbd>;key</kbd> or <kbd>^Fkey</kbd>: export NNN_PLUG='o:fzopen;p:mocplay;d:diffs;m:nmount;n:notes;v:imgviu;t:imgthumb' @@ -2143,6 +2143,9 @@ static int filterentries(char *path, char *lastname) ln[1] = ln[REGEX_MAX - 1]; ln[REGEX_MAX - 1] = '\0'; len = mbstowcs(wln, ln, REGEX_MAX); + /* Go to the top, we don't know if the + hovered file will match the filter */ + cur = 0; if (matches(pln) != -1) redraw(path); |