commit 80c9ecb003934c5fa53ab2a9559c7d22678b94ff
parent f07593ccd2c5df52d026a44ad6b260623422cecd
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri, 31 Jan 2020 20:53:34 +0100
joplin: reorganise keymap
Former-commit-id: 1df44c10fe8a0c4b2f0b9518eb3721ad4d2a43e6
Diffstat:
1 file changed, 21 insertions(+), 20 deletions(-)
diff --git a/joplin/keymap.json b/joplin/keymap.json
@@ -1,22 +1,23 @@
 [
-  { "keys": [";"], "type": "function", "command": "enter_command_line_mode" },
-  { "keys": ["l"], "type": "function", "command": "focus_next" },
-  { "keys": ["h"], "type": "function", "command": "focus_previous" },
-  { "keys": ["k"], "type": "function", "command": "move_up" },
-  { "keys": ["j"], "type": "function", "command": "move_down" },
-  { "keys": ["U"], "type": "function", "command": "page_up" },
-  { "keys": ["D"], "type": "function", "command": "page_down" },
-  { "keys": ["ENTER"], "type": "function", "command": "activate" },
-  { "keys": ["dd"], "type": "function", "command": "delete" },
-  { "keys": [" "], "command": "todo toggle $n" },
-  { "keys": ["q"], "command": "exit" },
-  { "keys": ["`"], "type": "function", "command": "toggle_console" },
-  { "keys": ["\\"], "type": "function", "command": "toggle_metadata" },
-  { "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
-  { "keys": ["cn"], "type": "prompt", "command": "mknote \"\"", "cursorPosition": -2 },
-  { "keys": ["ct"], "type": "prompt", "command": "mktodo \"\"", "cursorPosition": -2 },
-  { "keys": ["cb"], "type": "prompt", "command": "mkbook \"\"", "cursorPosition": -2 },
-  { "keys": ["yn"], "type": "prompt", "command": "cp $n \"\"", "cursorPosition": -2 },
-  { "keys": ["mb"], "type": "prompt", "command": "mv $n \"\"", "cursorPosition": -2 },
-  { "keys": ["cw","R"], "type": "prompt", "command": "ren $c \"\"", "cursorPosition": -2 }
+  { "keys": [";"],         "type" : "function",    "command" : "enter_command_line_mode" },
+  { "keys": ["l"],         "type" : "function",    "command" : "focus_next" },
+  { "keys": ["h"],         "type" : "function",    "command" : "focus_previous" },
+  { "keys": ["k"],         "type" : "function",    "command" : "move_up" },
+  { "keys": ["j"],         "type" : "function",    "command" : "move_down" },
+  { "keys": ["U"],         "type" : "function",    "command" : "page_up" },
+  { "keys": ["D"],         "type" : "function",    "command" : "page_down" },
+  { "keys": ["ENTER"],     "type" : "function",    "command" : "activate" },
+  { "keys": ["dd"],        "type" : "function",    "command" : "delete" },
+  { "keys": ["`"],         "type" : "function",    "command" : "toggle_console" },
+  { "keys": ["\\"],        "type" : "function",    "command" : "toggle_metadata" },
+  { "keys": [" "],         "type" : "exec",        "command" : "todo toggle $n" },
+  { "keys": ["q"],         "type" : "exec",        "command" : "exit" },
+  { "keys": ["@"],         "type" : "exec",        "command" : "sync" },
+  { "keys": ["/", "?"],    "type" : "prompt",      "command" : "search \"\"", "cursorPosition": -2 },
+  { "keys": ["cn"],        "type" : "prompt",      "command" : "mknote \"\"", "cursorPosition": -2 },
+  { "keys": ["ct"],        "type" : "prompt",      "command" : "mktodo \"\"", "cursorPosition": -2 },
+  { "keys": ["cb"],        "type" : "prompt",      "command" : "mkbook \"\"", "cursorPosition": -2 },
+  { "keys": ["yn"],        "type" : "prompt",      "command" : "cp $n \"\"", "cursorPosition": -2 },
+  { "keys": ["mb"],        "type" : "prompt",      "command" : "mv $n \"\"", "cursorPosition": -2 },
+  { "keys": ["cw","R"],    "type" : "prompt",      "command" : "ren $c \"\"", "cursorPosition": -2 }
 ]