-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fuzzy finder #1393
Fuzzy finder #1393
Conversation
- Fuzzy finder paths indexed when plugin is activated - Fuzy finder dialog now opens instantly
… the project name before file path
- Combine file name and file paths in fuzzy finder
5875681
to
a8c119a
Compare
All of these have been addressed.
All of these issues have been addressed except being able to open multiple files. I'm still unsure about how to implement that. |
Thanks for the improvements - I'll retest for a while. The muli-file issue can probably be left for another PR. The Files app has the same issue - selecting a matched file closes the search and if the selected file turns out not to be the desired one you have to repeat the whole search again (which could take a while). A logical solution might be to use |
* Associate popover with foldermanager * Remove deprecated PopoverConstraint
…ctories to search project class
The plugin now does indexing in the background |
process_initial_indexing_requests_async.end (res); | ||
status = IndexerStatus.IDLE; | ||
} | ||
); |
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.
Extra tab present
|
||
status = IndexerStatus.PROCESSING; | ||
debug ("Fuzzy Search - Indexer now processing!"); | ||
} |
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.
Blank line after if {} missing
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.
This works pretty well now. Lets bank the code - it can be iterated on if needed later.
Thanks for your work on this!
One thing I would query is how fuzzy the search is and the ordering - some of the results appear only remotely related but prioritised. E.g.with the Code and Files projects open, entering "cv" finds "class.svg" in Files and lists it higher than "cv.po" in Files. Would it be better to allow use of wildcards or regex or require matching at least 3 consecutive characters? |
I think that has something to do with the fact that when multiple projects are opened, the paths used when calculating the search score in // plugins/fuzzy-search/fuzzy-finder.vala
if (project_paths.size > 1) {
project_name = Path.get_basename (project.root_path);
path_search_result = fuzzy_match (search_str, @"$project_name/$path", cancellable);
} else {
// .. Removing this code should fix the issue you're describing. I think that the use of wildcards, regex or requiring at least 3 consecutive characters are solutions to try only if the suggested fixes above don't work. |
Yes, as long as the desired matches come first it doesn't really matter if there are remote matches further down. |
Continues the work from #1159
Fixes #134
As mentioned in the original pull request, the implementation in this pull request will be good enough to be used as plugin. Once this feature is mature enough then we could consider making it part of the core of the editor.