Let Vim insert mode escape (esc) to normal mode even if suggestion dropdown open

This bug really bothers me, enough so that I’ve switched to editing my Obsidian markdown in neovim + obsidian.nvim, and only use Obsidian for minor edits and to view my vault.

I’d rather be able to use Obsidian for edits, so I’ve done some digging. It looks like the escape hardcode is here, in the CodeMirror autocomplete source. This specific keymap is read-only, but it appears the client can specify multiple keymaps, e.g. from ResourcesCo (I was unable to find other open source examples.)

I believe Obsidian should be able to:

  • provide hotkeys that override this keymap
  • create a custom keymap using these hotkeys that overrides the completionKeymap, and set it at a higher priority

I believe I can’t verify in Obsidian without either access to Obsidian source or decompiling the binary.

2 Likes