FrankerFaceZ / Add-Ons

Add-Ons are additional modules for FrankerFaceZ that provide new behaviors and ways to customize Twitch.
68 stars 58 forks source link

[Inline Tab] use shortest match when giving suggestions #120

Open doubledgedboard opened 2 years ago

doubledgedboard commented 2 years ago

Just like https://github.com/FrankerFaceZ/Add-Ons/issues/71, in addition to giving suggestions for substrings, inline tab also gives suggestions for longer completion results first instead of the shortest result, which makes no sense

example, I type Sadge and hit Tab, I get a suggestion of smoketvSadge and if I press tab again then I get a suggestion of Sadge

Not only should it probably prefer something that starts with the input text over a substring, but it should be preferring the shortest match.