mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Key Lead' to go to first file in dir
This commit is contained in:
parent
26e18ab382
commit
8bc71c6e5b
|
@ -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 next active context |
|
||||||
| <kbd><</kbd>, <kbd>,</kbd> | Go to previous active context |
|
| <kbd><</kbd>, <kbd>,</kbd> | Go to previous active context |
|
||||||
| key | Go to bookmarked location |
|
| 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>~</kbd> <kbd>`</kbd> <kbd>@</kbd> <kbd>-</kbd> | Go to HOME, `/`, start, last visited dir |
|
||||||
| <kbd>q</kbd> | Quit context |
|
| <kbd>q</kbd> | Quit context |
|
||||||
|
|
||||||
|
|
10
src/nnn.c
10
src/nnn.c
|
@ -3669,6 +3669,16 @@ nochange:
|
||||||
case '@':
|
case '@':
|
||||||
presel = fd;
|
presel = fd;
|
||||||
goto nochange;
|
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
|
case '.': // fallthrough
|
||||||
case '<': // fallthrough
|
case '<': // fallthrough
|
||||||
|
|
Loading…
Reference in a new issue