commit 1ff99ec67b53a214ed7826c3e7f2a11c4859d1a9
parent 1debce2542367367b9f56e07289c3815292cfa98
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 27 Jan 2020 23:56:06 +0100
joplin config
Former-commit-id: c91115dd1ad98bb62ec89c823af3967c57064736
Diffstat:
3 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/dot.map b/dot.map
@@ -80,6 +80,7 @@ tmux:
- tmux.conf: ~/.tmux.conf
ghci: ~/.ghci
mpv: ~/.config/mpv
+joplin/keymap.json: ~/.config/joplin/keymap.json
# X server (Linux)
xinitrc: ~/.xinitrc
diff --git a/joplin/keymap.json b/joplin/keymap.json
@@ -0,0 +1,22 @@
+[
+ { "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 }
+]
diff --git a/vim/vimrc b/vim/vimrc
@@ -576,6 +576,7 @@ if has('terminal')
cnoreabbrev wt terminal ++close
cnoreabbrev tm terminal ++close man
cnoreabbrev tf terminal ++close lf
+ cnoreabbrev tn terminal ++close joplin
command! Tuir tab terminal tuir
endif
" }}}