Skip to content

Instantly share code, notes, and snippets.

@presuku
Created June 9, 2017 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save presuku/7a1f3eb0065bfa6797d60cca7df852d5 to your computer and use it in GitHub Desktop.
Save presuku/7a1f3eb0065bfa6797d60cca7df852d5 to your computer and use it in GitHub Desktop.
Add a few keybindings to fzy for action_exit.
diff --git a/src/tty_interface.c b/src/tty_interface.c
index 9bc732b..6f0dc23 100644
--- a/src/tty_interface.c
+++ b/src/tty_interface.c
@@ -223,6 +223,8 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char}, /* DEL */
{KEY_CTRL('U'), action_del_all}, /* C-U */
{KEY_CTRL('I'), action_autocomplete}, /* TAB (C-I ) */
{KEY_CTRL('C'), action_exit}, /* C-C */
+ {KEY_CTRL('G'), action_exit}, /* C-G */
+ {KEY_CTRL('['), action_exit}, /* C-[ */
{KEY_CTRL('D'), action_exit}, /* C-D */
{KEY_CTRL('M'), action_emit}, /* CR */
{KEY_CTRL('P'), action_prev}, /* C-P */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment