Created
June 9, 2017 03:50
-
-
Save presuku/7a1f3eb0065bfa6797d60cca7df852d5 to your computer and use it in GitHub Desktop.
Add a few keybindings to fzy for action_exit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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