Skip to content

Commit 128418a

Browse files
Jenzcalleluks
authored andcommitted
Some more Emacs key bindings
1 parent 87bf340 commit 128418a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pick.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Disable the use of the alternate screen terminal feature.
5252
Exit with a erroneous status without outputting the selected choice.
5353
.It Ic Up/Down | Ctrl-P/Ctrl-N
5454
Select between choices matching the current search query.
55-
.It Ic Page-Down/Page-Up
55+
.It Ic Page-Down/Page-Up | Ctrl-V/Alt-V
5656
Move the selection to the choice located one page down/up from the currently
5757
selected choice.
58-
.It Ic Home/End
58+
.It Ic Home/End | Alt-</Alt->
5959
Move the selection to the first/last choice matching the current search query.
6060
.It Ic Enter
6161
Output the currently selected choice and exit.

pick.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,12 +831,16 @@ get_key(char *buf, size_t size, size_t *nread)
831831
KEY(DOWN, "\033OB"),
832832
KEY(DOWN, "\033[B"),
833833
CAP(END, "kend"),
834+
KEY(END, "\033>"),
834835
KEY(ENTER, "\n"),
835836
CAP(HOME, "khome"),
837+
KEY(HOME, "\033<"),
836838
KEY(LEFT, "\002"),
837839
KEY(LEFT, "\033OD"),
838840
KEY(LEFT, "\033[D"),
841+
KEY(PAGE_DOWN, "\026"),
839842
KEY(PAGE_DOWN, "\033[6~"),
843+
KEY(PAGE_UP, "\033v"),
840844
KEY(PAGE_UP, "\033[5~"),
841845
KEY(RIGHT, "\006"),
842846
KEY(RIGHT, "\033OC"),

0 commit comments

Comments
 (0)