-
-
Notifications
You must be signed in to change notification settings - Fork 455
Program plugin improvement #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Qian Bao <[email protected]>
|
Question: Whether program plugin should query both description and name? Should description only be something that needs to displayed or people would like to query with it? |
Co-authored-by: Qian Bao<[email protected]>
Co-authored-by: Qian Bao <[email protected]>
…Launcher into ProgramPluginImprovement
…Launcher into ProgramPluginImprovement
71cf2e2 to
e7c4d83
Compare
|
The change should be ready for reviewing, and after using it for a while, I haven't found issues. @jjw24 |
Would there be a significant benefit not querying description? I suppose in theory querying the description helps where you dont know the name of the program.
In terms of displaying the description, I am personally quite ok with it added to the name as it is. My own usage, i dont really query the description unless i absolutely dont know what the program is called. I don't really know the impact, maybe put out a separate PR to test it out to get a better understanding? |
| var title = (Name, Description) switch | ||
| { | ||
| (var n, null) => n, | ||
| (var n, var d) when d.StartsWith(n) => d, | ||
| (var n, var d) when n.StartsWith(d) => n, | ||
| (var n, var d) when !string.IsNullOrEmpty(d) => $"{n}: {d}", | ||
| _ => Name | ||
| }; | ||
|
|
||
| var matchResult = StringMatcher.FuzzySearch(query, title); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍 👍
|
Well there isn't a significant benefit for removing the behavior of search from description except the trivial less time of search, but generally I think few people will use descriptions to search the program, and @bao-qian has removed the entire description part in wox, so just propose that here. Because in my view, flow should be a launcher that help us launcher program fast, so the long description may not be useful for search fast. |
May be we can break this question out to an issue and see if anyone else or the team has input. |
|
Sure! |
|
Got a question above and also need to resolve conflict, after that this is good to go in 👍 |
😀😀😉 |
jjw24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks @taooceros , merging in
This commit port some change from Wox authored by @bao-qian, which greatly improved the indexing time of win32 programs.
It also optimized a few code, and remove lock that seems insignificant.