obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

Feature request: Composite escape timeout setting

Open Laurensdc opened this issue 11 months ago • 2 comments

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

  • [x ] I understand that if my request is about supporting some Vim feature, it probably belongs here.

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 avatar Jul 10 '23 17:07 Laurensdc

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.

Laurensdc avatar Jul 11 '23 14:07 Laurensdc

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

DenJan123 avatar Mar 08 '24 18:03 DenJan123