]> git.mdlowis.com Git - projs/tide.git/commitdiff
add new category to keyboard shortcuts
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 13 Sep 2018 19:41:22 +0000 (15:41 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 13 Sep 2018 19:41:22 +0000 (15:41 -0400)
tide.c

diff --git a/tide.c b/tide.c
index 624ff2dda6a68603f6bcf1d0ecd1f21f455df1cd..040038c0df74d3d51611f9a27e4d2a12636c70f2 100644 (file)
--- a/tide.c
+++ b/tide.c
@@ -420,8 +420,6 @@ static KeyBinding Bindings[] = {
     { .mods = ModCtrl, .key = 'v', .fn = paste       },
     { .mods = ModCtrl, .key = 'j', .fn = join_lines  },
     { .mods = ModCtrl, .key = 'l', .fn = select_line },
-    { .mods = ModCtrl, .key = '[', .fn = exec, .arg = "|i-" },
-    { .mods = ModCtrl, .key = ']', .fn = exec, .arg = "|i+" },
 
     /* Common Special Keys */
     { .mods = ModNone, .key = KEY_PGUP,      .fn = page_up   },
@@ -429,6 +427,10 @@ static KeyBinding Bindings[] = {
     { .mods = ModAny,  .key = KEY_DELETE,    .fn = delete    },
     { .mods = ModAny,  .key = KEY_BACKSPACE, .fn = backspace },
 
+    /* External command shortcuts */
+    { .mods = ModCtrl, .key = '[', .fn = exec, .arg = "|i-" },
+    { .mods = ModCtrl, .key = ']', .fn = exec, .arg = "|i+" },
+
     /* Implementation Specific */
     { .mods = ModNone,      .key = KEY_ESCAPE, .fn = select_prev  },
     { .mods = ModCtrl,      .key = 't',        .fn = change_focus },