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

[Feature Request] Add settings to change undo history interval

Open Andr3wD opened this issue 2 years ago • 2 comments

Maybe add a setting to change the undo history interval so smaller undo-s can be done? Might be too out of scope for this plugin.

Andr3wD avatar Jul 14 '21 20:07 Andr3wD

I believe this can be done with historyEventDelay at https://codemirror.net/doc/manual.html#config and setOption part of CodeMirror.Vim. I'm offering to implement this, but I'm not sure if it's too out of scope for this plugin or not.

Andr3wD avatar Jul 15 '21 03:07 Andr3wD

IMHO any option that's available in CodeMirror and interests some users is worth exposing through a Vimrc setting. If you want to control this for yourself then I guess it's interesting. I'd define it as an option (CodeMirror.Vim.defineOption), and since there doesn't seem to be a Vim equivalent of it, use the name as it is in CodeMirror (historyEventDelay).

esm7 avatar Jul 15 '21 04:07 esm7