Zettlr
Zettlr copied to clipboard
[Develop] Proper keymaps
Description
We need to create proper, custom keymaps that do not import defaults but rather define every single command manually. This way we have full control over what keybindings we actually have and – more importantly – can modify them.
This will then allow us to also address the issue of customizable keyboard shortcuts. We can then simply pull in the proposed keyboard shortcuts from the configuration and assign them dynamically in a next step.
Proposed Changes
- Create one shared default keymap that defines commands that can be executed irrespective of the document type being edited.
- Create custom keymaps, one for each document type that can be edited, defining commands that make only sense for those types (Markdown, YAML, JSON, LaTeX).
Replace every default keymap with those.
Caveats
It's some initial work and we should then not forget to implement novel keymaps if they become added to CodeMirror.
Do you Wish to Attempt Implementing this Yourself?
Yes
Zettlr Version
None
Your Platform
- [ ] Windows
- [ ] macOS
- [ ] Linux
Operating System Version
No response
Additional Information
No response
Is this feature on the development schedule?