From d484e9b306e1507db2c104034fbab4611659599a Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 20 Dec 2016 18:45:25 -0500 Subject: [PATCH] add shortcut to open a new window --- xedit.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xedit.c b/xedit.c index 903c81c..fa4d512 100644 --- a/xedit.c +++ b/xedit.c @@ -64,6 +64,7 @@ static void del_indent(void); static void add_indent(void); static void eol_mode(void); static void debug_dump(void); +static void new_win(void); // Tag/Cmd Execution static Tag* tag_lookup(char* cmd); @@ -168,6 +169,7 @@ static KeyBinding Bindings[] = { { ModCtrl, 'o', open_file }, { ModCtrl, 'p', pick_ctag }, { ModCtrl, 'g', goto_ctag }, + { ModCtrl, 'n', new_win }, }; /* External Commands @@ -654,6 +656,10 @@ static void debug_dump(void) { dump_log(buf->redo); } +static void new_win(void) { + cmd_exec("!edit"); +} + /* Tag/Cmd Execution *****************************************************************************/ static Tag* tag_lookup(char* cmd) { -- 2.54.0