esm7 / obsidian-vimrc-support

A plugin for the Obsidian.md note-taking software
MIT License
1.07k stars 47 forks source link

Obsidian lags on UP/DOWN/LEFT/RIGHT repeat keystrokes when Vimrc enabled. #238

Open Manrunas opened 10 hours ago

Manrunas commented 10 hours ago

Obsidian lags on UP/DOWN/LEFT/RIGHT repeated keystrokes. If I disable VIMRC plugin no more lagging. When I re-enable VIMRC, lag does not appear until I switch to different tab.

Also, when VIMRC enabled, the lag is noticeable only in vim "normal mode", but less noticeable in vim "insert mode".

Windows 10 Obsidian installer 1.6.7

Manrunas commented 8 hours ago

After further tinkering I noticed, if I disable Vimrc extension setting “Vim Chord Display” AND restart Obsidian, the lag disappears. The Vimrc extension is enabled at that moment.

Manrunas commented 7 hours ago

Continuing further I noticed that the lag is present only when I navigate up and down left and right with actual cursor "UP" "DOWN" "LEFT" "RIGHT" keys, but no lag when using h,j,k,l keys. When I use cursor keys I observe chord activates in Obsidian "status bar", but when I use h,j,k,l keys, no chord label is present.

I use AutoHotKey on Windows 10 to remap CapsLock + h,j,k,l to cursor keys Left, Down, Up, Right. Remap is active globally for all Windows apps including Obsidian.

So looks like arrow keys activate a chord mode. Should it be that way?