From 8bc71c6e5b06ae3d01da142417dc92340fa91e5e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 7 Aug 2019 19:47:17 +0530 Subject: Key Lead' to go to first file in dir --- src/nnn.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index f41558b..8756b0d 100644 --- a/src/nnn.c +++ b/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 -- cgit v1.2.3-70-g09d2