瀏覽代碼

Go to top when last saved filter is applied

master
Arun Prakash Jana 5 年之前
父節點
當前提交
bb3d79ce21
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. +1
    -1
      plugins/README.md
  2. +3
    -0
      src/nnn.c

+ 1
- 1
plugins/README.md 查看文件

@@ -65,7 +65,7 @@ Plugins are installed to `${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins`.


## Ways to invoke a plugin ## 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' export NNN_PLUG='o:fzopen;p:mocplay;d:diffs;m:nmount;n:notes;v:imgviu;t:imgthumb'




+ 3
- 0
src/nnn.c 查看文件

@@ -2143,6 +2143,9 @@ static int filterentries(char *path, char *lastname)
ln[1] = ln[REGEX_MAX - 1]; ln[1] = ln[REGEX_MAX - 1];
ln[REGEX_MAX - 1] = '\0'; ln[REGEX_MAX - 1] = '\0';
len = mbstowcs(wln, ln, REGEX_MAX); 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) if (matches(pln) != -1)
redraw(path); redraw(path);


||||||
x
 
000:0
Loading…
取消
儲存