diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-08-07 19:47:17 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-08-07 19:47:17 +0530 |
commit | 8bc71c6e5b06ae3d01da142417dc92340fa91e5e (patch) | |
tree | 1fdfe6d1f627e5dc6c52406069e6365fe69fbdfa /src | |
parent | 26e18ab382ef388a8d3475464a03ed3ba37a68dc (diff) | |
download | nnn-8bc71c6e5b06ae3d01da142417dc92340fa91e5e.tar.gz |
Key Lead' to go to first file in dir
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |