浏览代码

Key Lead' to go to first file in dir

master
Arun Prakash Jana 5 年前
父节点
当前提交
8bc71c6e5b
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. +1
    -0
      README.md
  2. +10
    -0
      src/nnn.c

+ 1
- 0
README.md 查看文件

@@ -323,6 +323,7 @@ The Leader/Lead key provides a powerful multi-functional navigation mechanism. I
| <kbd>></kbd>, <kbd>.</kbd> | Go to next active context |
| <kbd><</kbd>, <kbd>,</kbd> | Go to previous active context |
| key | Go to bookmarked location |
| <kbd>'</kbd> | Go to first file in directory |
| <kbd>~</kbd> <kbd>`</kbd> <kbd>@</kbd> <kbd>-</kbd> | Go to HOME, `/`, start, last visited dir |
| <kbd>q</kbd> | Quit context |



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

@@ -3669,6 +3669,16 @@ nochange:
case '@':
presel = fd;
goto nochange;
case '\'':
for (r = 0; r < ndents; ++r) {
if (!(dents[r].flags & DIR_OR_LINK_TO_DIR)) {
move_cursor((r) % ndents, 0);
break;
}
}
if (r != ndents)
continue;;
goto nochange;
case '>': // fallthrough
case '.': // fallthrough
case '<': // fallthrough


正在加载...
取消
保存