aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorlostd <lostd@2f30.org>2015-07-12 13:32:31 +0100
committerlostd <lostd@2f30.org>2015-07-12 13:32:31 +0100
commitdcde07637141064a39c79db93d47f6fe588a782d (patch)
tree2fa2d46440b3f7df8e90cd0a9351e3b16d76f784 /noice.c
parent4db0d0dae08090f1bdf7b9a629777ba09e222667 (diff)
downloadnoice-dcde07637141064a39c79db93d47f6fe588a782d.tar.gz
Add keys to move to the first and last entry
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c8
1 files changed, 8 insertions, 0 deletions
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: ");
Un proyecto texto-plano.xyz