]> git.mdlowis.com Git - projs/tide.git/commitdiff
add shortcut to open a new window
authorMichael D. Lowis <mike@mdlowis.com>
Tue, 20 Dec 2016 23:45:25 +0000 (18:45 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Tue, 20 Dec 2016 23:45:25 +0000 (18:45 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index 903c81c545f7e038cfe55a41d858767a7d730388..fa4d512963bc68093b03be2a163654861ab7930f 100644 (file)
--- 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) {