keybindings
ja
en
This is like keybindings.json in VSCode.
import
code:script.js
import '/api/code/foldrr/scrapbox-shortcut/script.js'
import * as action from '/api/code/rmaruon-settings/editor-action/script.js'
import * as navigate from '/api/code/rmaruon-settings/navigate/script.js'
scrapboxShortcut.onEdit('mod+enter', action.insertLineAfter)
scrapboxShortcut.onEdit('mod+shift+enter', action.insertLineBefore)
scrapboxShortcut.onEdit('mod+x', action.clipboardCutAction)
scrapboxShortcut.onEdit('mod+c', action.clipboardCopyAction)
scrapboxShortcut.onEdit('mod+shift+d', action.copyLinesDownAction)
scrapboxShortcut.onEdit('[', action.linkAction)
scrapboxShortcut.onEdit(']', action.unlinkAction)
scrapboxShortcut.onEdit('mod+h', action.replaceAction)
scrapboxShortcut.onEdit('alt+/', action.insertTextAction('/thumb/100'))
scrapboxShortcut.onEdit('alt+3', action.insertTextAction('#.png'))
scrapboxShortcut.onEdit('alt+i', action.insertTextAction('.icon'))
scrapboxShortcut.onEdit('alt+v', action.insertTextAction('✅'))
scrapboxShortcut.onEdit('mod+shift+i', action.insertTextAction('rmaruon.icon'))
scrapboxShortcut.onBrowse('mod+shift+p', navigate.settings.pageData)
scrapboxShortcut.onEdit('mod+shift+p', navigate.settings.pageData)
For modifier keys you can use shift, ctrl, alt, or meta.
You can substitute option for alt and command for meta.
Other special keys are backspace, tab, enter, return, capslock, esc, escape, space, pageup, pagedown, end, home, left, up, right, down, ins, del, and plus.
Any other key you should be able to reference by name like a, /, $, *, or =.
mod
Windows: ctrl
macOS: command