-
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
[CLOSED] Find in Files Improvements (Part 4: Sorting) #5987
Comments
Comment by TomMalbran
|
Comment by JeffryBooher Apologies |
Comment by TomMalbran Great. Thanks |
Comment by JeffryBooher
|
Comment by TomMalbran
|
Comment by JeffryBooher
|
Comment by peterflynn
Or might you have had a different project root open in the two cases you tested? (Neither path example above looks like a full, absolute path to me). |
Comment by redmunds A case where full paths maybe used to be shown is when you have a file open that is outside your current project since Working Set files are also searched. I tested in master and I'm not seeing any path for that case -- seems like full path should be shown. |
Comment by JeffryBooher
|
Comment by TomMalbran Sure will merge with master and check that. This PR is a bit old, but since it can still be merged I haven't merged it with master. |
Comment by TomMalbran
|
Comment by peterflynn
The code that makes it relative is on line 372 -- the call to |
Comment by JeffryBooher hey |
Comment by TomMalbran
I still found a small bug. Since this places the currently selected file, the files order changes when this file the current file changes, which happens when you switch files and start editing which changes the results. Not sure if I should remove this, or save the current file at the start of the search and always use that one. |
Comment by JeffryBooher got it. merging... |
Comment by TomMalbran
cc Will fix this in a new PR, once I know which way to go. |
Comment by larz0 We could sort them alphabetically or we could sort by file type first then alphabetically. I think the second option is better because hen I start find-in-files when a JS file is opened I'd like to see JS files in the results first, ahead of the matches in say CSS. |
Comment by TomMalbran The files are sorted in the same way as they are in the files tree, if you open it completely. The only difference is that the selected file goes first. |
Comment by larz0 Ahh ok cool. |
Comment by TomMalbran
|
Comment by larz0 Yes that makes sense. |
Comment by JeffryBooher
|
Comment by TomMalbran No problem. Will submit a PR soon to fix that issue. Testing it right now. |
Issue by TomMalbran
Sunday Jan 19, 2014 at 02:27 GMT
Originally opened as adobe/brackets#6585
The Find in Files Improvements are back with part 4.
With this PR the files in the Find in Files results are sorted before showing the results. It will always show first the selected file and the rest after sorted similar to how they are displayed in the project tree in Windows.
This fixes issue #4933.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/6585/commits
The text was updated successfully, but these errors were encountered: