esm7 / obsidian-vimrc-support

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

Feature request: Composite escape timeout setting #197

Open Laurensdc opened 1 year ago

Laurensdc commented 1 year ago

Please make sure this feature request is within the scope of this plugin.

Describe the feature that you'd like:

I would like to set a timeout option for a composite escape.

E.g. I bound imap jk <Esc> which works wonderfully! It's the same as I've got set up in nvim and emacs. And it helps me to give Obsidian a shot at all :)

However, in my language I've got words ending on with "jk", so I usually set the timeout to about 60ms. That means, I have to hit the two keys within 60ms.

Is this possible with the plugin?

Additional context:

image

Laurensdc commented 1 year ago

I actually got a workaround. I decided to just remap the composite escape to jl. I got jk from the defaults in Emacs, but I can easily set a consistent composite escape in Emacs, nvim and obsidian by mapping it to jl.

This doesn't conflict with any words in Dutch or English, so the timeout doesn't matter.

Not sure if this issue should stay open.

DenJan123 commented 7 months ago

I think it is one of the most important reason to use vim keybindings. Would be great to see this feature made.