obsidian-various-complements-plugin
obsidian-various-complements-plugin copied to clipboard
"Minimum number of characters for trigger" should depend on match strategy
It makes a lot of sense for the default to differ by language (as you do if 0 is selected).
But it makes even more sense for this to differ by match strategy.
I often flip between prefix and partial depending on what I am doing.
For prefix it is sensible for me to have a match N of 2 so I can just type unique things like v1 instead of v11 for a custom dictionary match or even usual dictionary matches
For partial, 2 makes no sense at all, and gives millions of irrelevant hits for almost anything - here I need 3 or 4.
Although I can easily flip between strategy (on the status bar), I then need to change the N setting each time I do that.
Can I suggest having two different settings for N
- For Partial
- For Prefix
The default of zero with a language based flip could remain as it is -- but I think people will very rarely be changing the language strategy "on the fly"
Hi, @aubreyz.
For partial, 2 makes no sense at all, and gives millions of irrelevant hits for almost anything - here I need 3 or 4.
I see. A partial match includes some noises and reduces performance, so your suggestion looks great 👍