From dcde07637141064a39c79db93d47f6fe588a782d Mon Sep 17 00:00:00 2001 From: lostd Date: Sun, 12 Jul 2015 13:32:31 +0100 Subject: Add keys to move to the first and last entry --- noice.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'noice.c') diff --git a/noice.c b/noice.c index 2c408fe..228aedf 100644 --- a/noice.c +++ b/noice.c @@ -54,6 +54,8 @@ enum action { SEL_PREV, SEL_PGDN, SEL_PGUP, + SEL_HOME, + SEL_END, SEL_CD, SEL_MTIME, SEL_REDRAW, @@ -827,6 +829,12 @@ moretyping: if (cur > 0) cur -= MIN((LINES - 4) / 2, cur); break; + case SEL_HOME: + cur = 0; + break; + case SEL_END: + cur = n - 1; + break; case SEL_CD: /* Read target dir */ printprompt("chdir: "); -- cgit v1.2.3