Skip to content

Instantly share code, notes, and snippets.

@zhsso
Forked from karlredman/joplin-keymap.json
Created September 2, 2023 04:51
Show Gist options
  • Save zhsso/d9d4049b6242121a46c4c906c1c58fa8 to your computer and use it in GitHub Desktop.
Save zhsso/d9d4049b6242121a46c4c906c1c58fa8 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 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment