choose icon indicating copy to clipboard operation
choose copied to clipboard

Search results not the most relevant

Open rbuzatu90 opened this issue 4 years ago • 2 comments

Hi,

First thanks for this helpful tool. Second, I feel that how the search is performed is not that great. Consider having the following 2 lines: * ssh server target ServerAliveInterval=50 -o StrictHostKeyChecking=no jumper host * dns nameserver dhcp start --gateway subnet Now if you search by 'ssh' you will get the second line in first which shouldn't be the case since there's no 'ssh' word in it. Also if you search for 'ssh target' still it won't get the 1st line which contains both tokens 'ssh' and 'target' to be displayed on top. Any ideas ?

Also I'm willing to support this project!

rbuzatu90 avatar Jun 02 '20 12:06 rbuzatu90

@rbuzatu90 , if you have another means of scoring in mind, I'm happy to have an alternative scoring method available that can be configured via an option if you'd like to give it a try.

I wouldn't want to make it the default and I wouldn't want to remove the current scoring as that would disrupt people already using the tool.

chipsenkbeil avatar Jun 03 '20 02:06 chipsenkbeil

The rules here might be of help. I've loosely followed them in a few web apps and found the experience much better. These also solve for the issue mentioned here.

http://jeremymikkola.com/posts/2019_03_19_rules_for_autocomplete.html

Gleek avatar Jul 25 '20 11:07 Gleek