tadashi-aikawa / obsidian-various-complements-plugin

This plugin for Obsidian enables you complete words like the auto-completion of IDE.
MIT License
616 stars 22 forks source link

[FR] Include fuzzy matching for mistyped first/any character #212

Open zanodor opened 1 year ago

zanodor commented 1 year ago

Oftentimes, one types in a longish word, only to realize one typed it all in correctly, bar the first letter. Typed c instead of v, for instance. Is there a way to look for letters based on proximity on a keyboard?
Although I think it would just be better to have the fuzzy match work towards ignoring and substituting any letter, regardless of keyboard position.

Cheers

tadashi-aikawa commented 1 year ago

Hi, @zanodor :)

It will be possible to tolerate some input errors, but they are all a trade-off against performance. Verious Complements is focused on the speed at which completions appear. It is not on the order of seconds but on the level of tens of milliseconds.

Optionally, setting the number of misspelled letters will be possible, but only the first letter must be entered correctly.

zanodor commented 1 year ago

Aha. I see. Well, Kami-San and you know best.

I'll leave it up to you to figure out what settings could work in these and other cases.

Cheers

tadashi-aikawa commented 1 year ago

Generally, following up on miss typings needs costs. Various Complements can't ignore these costs in the current version at least.

So let me add the long-term label to this issue.