esm7 / obsidian-vimrc-support

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

Insert mode key map like jk does not work at all #220

Open TommyX12 opened 5 months ago

TommyX12 commented 5 months ago

Please Review Before Posting!

Describe the bug:

The key binding imap jk <C-[> does not work. Instead of returning to normal mode, it inserts the text instead. I also tried the following:

Update: I am able to get imap jk <Esc> working (although imap jk <esc> doesn't work); but other keys like <C-w> does not work.

To Reproduce:

Steps to reproduce the behavior:

Environment (please complete the following information):

Additional context:

With the same plugin version (0.9.0), everything worked fine for an older Obsidian version. The last known version of Obsidian that worked was 1.1.9 (the latest Obsidian version at the time of writing is 1.5.12 now) . This bug has prevented me from updating Obsidian for more than a year. I pray everyday to have this fixed but the fix never came :'(

Laurensdc commented 5 months ago

I have the mapping imap jl <Esc> working on iOS, Windows and macOS, but not on Android. With the same config.

Edit: This is unrelated to the above bug. It does work on Android when connecting a Bluetooth keyboard, but not with any built in keyboard, for some reason.

lin-behappy commented 4 months ago

I have the mapping imap jl <Esc> working on iOS, Windows and macOS, but not on Android. With the same config.

Edit: This is unrelated to the above bug. It does work on Android when connecting a Bluetooth keyboard, but not with any built in keyboard, for some reason.

@Laurensdc I’ve encountered the same problem, did you find a solution?

Laurensdc commented 4 months ago

@lin-behappy No I haven't. I unfortunately turn vim mode off for my Android device until there's a fix.