diff options
author | lostd <lostd@2f30.org> | 2015-07-12 13:32:31 +0100 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2015-07-12 13:32:31 +0100 |
commit | dcde07637141064a39c79db93d47f6fe588a782d (patch) | |
tree | 2fa2d46440b3f7df8e90cd0a9351e3b16d76f784 /noice.c | |
parent | 4db0d0dae08090f1bdf7b9a629777ba09e222667 (diff) | |
download | noice-dcde07637141064a39c79db93d47f6fe588a782d.tar.gz |
Add keys to move to the first and last entry
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: "); |