-
Notifications
You must be signed in to change notification settings - Fork 0
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
Quick Open Too Generous #12277
Comments
Comment by rajeshsegu To make it easy, it should just search for the file names only. In IntelliJ, its done a lot better.. First show all the best match file names and in the later section show all possibilities. |
Comment by ctolkien I'm a huge fan of the 'search by capital letters' method. |
Comment by njx Reviewed. Assigning to
|
Comment by larz0 I agree with all the suggested improvements. |
Comment by dangoor In #3588, I'm in the midst of work for code hinting that adds new options to Quick Open. I can look into scoring adjustments that benefit prefixes of the filename. Already, however, a prefix match in the filename is heavily boosted.
If you have a file called ThisIsMyController.txt and you type Summarizing what I see above: The original problem reported is just that a file that is a match, though not a good one, appears in the list. We could fix that, but it seems low priority. Does anyone on this thread have a case where the file they're looking for isn't at the top of the list? If so, please let me know which file (including the full path in your project) you wanted at the top and which ones were ahead of it. It's impossible for the algorithm to guess 100% which file is intended, but there's always room for improving how close it gets you to a given file. |
Comment by njx Here's an example I just ran into which is probably similar: in the I feel like a lot of the odd matches I get are of this form: the end of the query matches stuff in the filename, but stuff earlier in the query matches random characters from the rest of the path. I almost wonder if it would be better to require there to be a "/" in the search in order to match separate path segments. |
Comment by peterflynn
|
Comment by dangoor
The current algorithm does get some strange matches, but my concern has always just been to have the best at the top. I would not be opposed to penalizing strange matches and filtering out matches that are below some threshold if we want the list to look cleaner. |
Comment by njx Yup, I agree that penalizing cross-segment matches that don't have "/" in the query would be better than requiring "/". |
Comment by njx Reviewed, removing 1.0 milestone. Doesn't seem critical to improve the heuristics further right now. |
Issue by cfsilence
Wednesday May 01, 2013 at 14:58 GMT
Originally opened as adobe/brackets#3694
When searching for a file named "common.js" the following result should not be included:
http://screencast.com/t/QsuizsgUOz
Quick Open should search strictly for the string in its entirety.
A nice enhancement for Quick Open would also be to support searching via capital letters similar to the way you can in Eclipse.
For example, searching for "TIMC" would find both a filename that contained that string, but would prioritize the file name: ThisIsMyController.txt because I searched for the capitalized letters.
The text was updated successfully, but these errors were encountered: