fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 7d0ecd5e4f54dc4700d8a658a3df51cf0bac9355 parent b4b111bd8c280607303091aecb2784344785d864 Author: Greg Anders <greg@gpanders.com> Date: Sun, 13 Oct 2019 16:10:34 -0600 Cancel with Ctrl-G Diffstat:
| M | fzy.1 | | | 2 | +- |
| M | src/tty_interface.c | | | 1 | + |
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/fzy.1 b/fzy.1 @@ -54,7 +54,7 @@ Usage help. .BR "ENTER" Print the selected item to stdout and exit .TP -.BR "Ctrl+c, Esc" +.BR "Ctrl+c, Ctrl+g, Esc" Exit with status 1, without making a selection. .TP .BR "Up Arrow, Ctrl+p" diff --git a/src/tty_interface.c b/src/tty_interface.c @@ -291,6 +291,7 @@ static const keybinding_t keybindings[] = {{"\x1b", action_exit}, /* ESC * {KEY_CTRL('I'), action_autocomplete}, /* TAB (C-I ) */ {KEY_CTRL('C'), action_exit}, /* C-C */ {KEY_CTRL('D'), action_exit}, /* C-D */ + {KEY_CTRL('G'), action_exit}, /* C-G */ {KEY_CTRL('M'), action_emit}, /* CR */ {KEY_CTRL('P'), action_prev}, /* C-P */ {KEY_CTRL('N'), action_next}, /* C-N */