Skip to content

Instantly share code, notes, and snippets.

@karlredman
Last active September 2, 2023 04:51
Show Gist options
  • Save karlredman/78d503fb79223280fbccdf362ffe2cf2 to your computer and use it in GitHub Desktop.
Save karlredman/78d503fb79223280fbccdf362ffe2cf2 to your computer and use it in GitHub Desktop.
vim-sh keymap.json for Joplin Terminal Application (CLI)
[
{ "keys": [":"], "type": "function", "command": "enter_command_line_mode" },
{ "keys": ["q"], "type": "prompt", "command": "exit", "cursorPosition": -1 },
{ "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
{ "keys": ["TAB","l"], "type": "function", "command": "focus_next" },
{ "keys": ["SHIFT_TAB","h"], "type": "function", "command": "focus_previous" },
{ "keys": ["UP","k"], "type": "function", "command": "move_up" },
{ "keys": ["DOWN","j"], "type": "function", "command": "move_down" },
{ "keys": ["PAGE_UP","K","u"], "type": "function", "command": "page_up" },
{ "keys": ["PAGE_DOWN","J"," "], "type": "function", "command": "page_down" },
{ "keys": ["ENTER"], "type": "function", "command": "activate" },
{ "keys": ["cd"], "command": "todo clear $n" },
{ "keys": ["cs"], "command": "sync" },
{ "keys": ["DELETE", "BACKSPACE","dd"], "type": "function", "command": "delete" },
{ "keys": ["mn"], "type": "prompt", "command": "mknote \"\"", "cursorPosition": -2 },
{ "keys": ["mt"], "type": "prompt", "command": "mktodo \"\"", "cursorPosition": -1 },
{ "keys": ["mb"], "type": "prompt", "command": "mkbook \"\"", "cursorPosition": -2 },
{ "keys": ["mg"], "type": "prompt", "command": "tag add \"\" $n", "cursorPosition": -5 },
{ "keys": ["oR"], "command": "config notes.sortOrder.reverse \"true\"" },
{ "keys": ["or"], "command": "config notes.sortOrder.reverse \"false\"" },
{ "keys": ["ot"], "command": "config notes.sortOrder.field \"title\"" },
{ "keys": ["oc"], "command": "config notes.sortOrder.field \"user_created_time\"" },
{ "keys": ["ou"], "command": "config notes.sortOrder.field \"user_updated_time\"" },
{ "keys": ["sg"], "command": "tag notetags $n" },
{ "keys": ["ss"], "type": "prompt", "command": "status", "cursorPosition": -1 },
{ "keys": ["tc"], "type": "function", "command": "toggle_console" },
{ "keys": ["td"], "command": "todo toggle $n" },
{ "keys": ["tm"], "type": "function", "command": "toggle_metadata" },
{ "keys": ["yn"], "type": "prompt", "command": "cp $n \"\"", "cursorPosition": -2 },
{ "keys": ["yN"], "type": "prompt", "command": "mv $n \"\"", "cursorPosition": -2 }
]
@karlredman
Copy link
Author

karlredman commented Jan 16, 2020

Joplin - keymap.json information

Orchestration

command Key Prompt?
enter_command_line_mode : X
exit q X
search / X
activate (selected note) Enter
delete (selected note/notebook) X
BACKSPACE X
DELETE X

Operations

Prefix Meaning Suffex Action Prompt ?
c Command
d to{d}o (clear)
s {s}ync
d Delete
d {d}elete X
m Make
b note{b}ook X
g ta{g} X
n {n}ote X
t {t}odo X
o Order (sort)
r {r}everse (false)
R {R}everse (true)
t {t}itle
c {c}reation time
u {u}pdated time
s Show
g note ta{g}s
s {s}tatus
t Toggle
c {c}onsole
d to{d}o
m {m}etadata
y Yank
n copy {n}ote [notebook] X
N move {n}ote [notebook] X

Navigation

command Key Prompt?
focus_next (column) l
TAB
focus_previous (column) h
SHIFT_TAB
move_down (cursor) j
DOWN
move_up (cursor) k
UP
page_down (cursor) J
PAGE_DOWN
[SPACEBAR]
page_up (cursor) K
u
PAGE_UP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment