Vim-leader-key behavior has never made it into CM, but could a work-around be possible using
I’d be happy if someone could tell me why this is impossible or why it’s a very bad idea so I can stop wondering about it :).
I haven’t found many examples, but here’s what I’ve got so far:
- this one got me thinking a work-around might be possible, Expose vim keymap · Issue #6371 · codemirror/CodeMirror · GitHub
- this is the only
defineAction()example i could find, https://discuss.codemirror.net/t/vim-mapping-additional-functionality-to-a-key-with-defineaction/1679
- good example of multi-key
mapCommand(), cannot map <C-d> as delete at vim binding · Issue #6535 · codemirror/CodeMirror · GitHub
I’d like to type
<Space>x from normal-mode to get my handy GitHub-Flavored-Markdown checkbox shortcut
Can defineAction and mapCommand work togther to acheive anything similar?
Please no vim-golf w/my checkbox shortcut, it’s just an example