obsidian-rtl icon indicating copy to clipboard operation
obsidian-rtl copied to clipboard

Vim Normal mode issue in RTL: arrow keys misbehave

Open esm7 opened this issue 4 years ago • 2 comments

After one of the recent Obsidian updates (around 0.10.6), seems like Obsidian is catching left/right cursor movements and bypassing the rtlMoveVisually setting of CodeMirror, causing the cursor to move to the wrong side.

esm7 avatar Jan 19 '21 08:01 esm7

Before patching this by catching these DOM events and overriding them for RTL mode, I posted in the Obsidian forum hoping to get the core issue fixed: https://forum.obsidian.md/t/obsidian-is-catching-left-right-and-j-k-cursor-movements-causing-cm-rtlmovevisually-to-break/11650

esm7 avatar Jan 19 '21 08:01 esm7

So after further investigation, this is a specific issue with the CodeMirror Vim keymap when in RTL. I opened a CodeMirror bug here: https://github.com/codemirror/CodeMirror/issues/6574 There is no reasonable patch I can make in the plugin to fix this :(

esm7 avatar Jan 20 '21 15:01 esm7