Vim keybinding mode #331
-
Is there any plan for vim keybindings ? Also in case no plan for this, any tips for adding vim keybinding so i can try to add it ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, you should provide this functionality as an extension – we could potentially include it in the main repo as an optional add-on once complete if you're interested. In terms of how to achieve this I'd follow the pattern set out here: https://github.com/outline/rich-markdown-editor/blob/develop/src/plugins/Keys.ts In the context of the extension you have |
Beta Was this translation helpful? Give feedback.
Hi, you should provide this functionality as an extension – we could potentially include it in the main repo as an optional add-on once complete if you're interested. In terms of how to achieve this I'd follow the pattern set out here:
https://github.com/outline/rich-markdown-editor/blob/develop/src/plugins/Keys.ts
In the context of the extension you have
this.editor.commands
which should contain everything you need. You can then pass the resulting extension to theextensions
prop on the editor.