You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vim mode does not allow using Ctrl-[ for escape #1059
Ctrl-[ is equivalent to Esc on Linux systems and many people use it as a quicker alternative to pressing the escape key for returning to normal mode. Unfortunately, this does not currently work in ZenNotes.
ZenNotes is based on codemirror-vim which supports <C-[> by default.
Unfortunately, ZenNotes' global defaultKeymap assigns Mod-[ (same as <C-[> on Linux, Windows) to indentless.
The indentless handler runs first and reports the key as handled, so it never reaches the Vim layer.
Similar problems exist for other keys and have been worked around in existing code (Mod-a, Esc).
Therefore, the easiest fix is to apply the same strategy for Mod-[.
I'm attaching a patch that fixes the issue (tested on Linux only). I'm holding off on creating a PR thus far,
as there are some design decisions to be made. E.g. should Mod-] also be changed, so there's no asymmetry?
Activity