Skip to content
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] Order folders on top #2772

Open
core-ai-bot opened this issue Aug 29, 2021 · 30 comments
Open

[CLOSED] Order folders on top #2772

core-ai-bot opened this issue Aug 29, 2021 · 30 comments

Comments

@core-ai-bot
Copy link
Member

Issue by drewhamlett
Friday Feb 22, 2013 at 13:59 GMT
Originally opened as adobe/brackets#2935


Instead of alphabetical order have option or default to folders on top. This is how most text editors and ides do it.

See Chocolat text editor option.

If enabled, the folders will be shown above files in the source list.
@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Friday Feb 22, 2013 at 14:14 GMT


as far as i know folders are on top at least on windows

@core-ai-bot
Copy link
Member Author

Comment by drewhamlett
Friday Feb 22, 2013 at 14:52 GMT


Screen Shot 2013-02-22 at 9 52 23 AM

Not for me

@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Friday Feb 22, 2013 at 14:57 GMT


are you on a mac?
because in the tree sort function there is some windows specific code

@core-ai-bot
Copy link
Member Author

Comment by drewhamlett
Friday Feb 22, 2013 at 15:03 GMT


Yea I'm on Mac. Mean't to mention that.

@core-ai-bot
Copy link
Member Author

Comment by njx
Friday Feb 22, 2013 at 17:59 GMT


We're following the platform convention--on Mac folders are mixed in with files, on Windows they're sorted to the top. We could add a sorting preference though. Marking move to backlog.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday Feb 22, 2013 at 21:59 GMT


Fwiw, on the Mac Espresso, TextMate and Coda all show files and folders intermingled too -- seems pretty standard. OTOH this seems very easy to have a pref for.

As a workaround, you can hack your local copy of Brackets just by removing the brackets.platform === "win" check in ProjectManager._renderTree().

@core-ai-bot
Copy link
Member Author

Comment by drewhamlett
Friday Feb 22, 2013 at 22:10 GMT


TextMate 2 orders folders first out of box. I haven't used the first Textmate in so long I can't remember what it does.

Screen Shot 2013-02-22 at 5 06 36 PM

Chocolat

Screen Shot 2013-02-22 at 5 07 05 PM

Then most of the IDE's I've used. Netbeans, Eclipse, Webstorm.

Thanks for your help though. I've never understood why MacOSX does this. Makes no sense to me.

@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Sunday Feb 24, 2013 at 09:18 GMT


i wanted to implement a sorting preference but i wanted to ask if sombody has a good idea how to integrate such a feature nicely into the UI

@core-ai-bot
Copy link
Member Author

Comment by njx
Monday Feb 25, 2013 at 19:47 GMT


@WebsiteDeveloper - In the current UI it would make some sense to add it to the Recent Projects dropdown, but that would be a little weird. We're currently planning to revamp the organization of this UI (that's the "Topcoat parity" work on the backlog that@GarthDB is researching), so it's probably best to wait until that happens before deciding where to put this functionality. Thanks.

@core-ai-bot
Copy link
Member Author

Comment by GarthDB
Monday Feb 25, 2013 at 20:03 GMT


That would be a nice feature.

@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Thursday Apr 11, 2013 at 16:54 GMT


@GarthDB let me know once you know have decided where to add it to the UI, even if the UI isn't implemented yet, because then i would start working on the internal things an later add the UI.

@core-ai-bot
Copy link
Member Author

Comment by adrocknaphobia
Friday May 24, 2013 at 20:30 GMT


Moved to backlog: https://trello.com/c/l3ce9hgK

We just need a little UX support before we can add this feature. I'm closing the issue, but keeping the pull request open.

@core-ai-bot
Copy link
Member Author

Comment by ghost
Tuesday Apr 29, 2014 at 20:44 GMT


This is my least favorite part of Brackets ... feels so janky with folders randomly (alphabetically) scattered throughout. :)

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Tuesday Apr 29, 2014 at 20:58 GMT


@ensocloud You should be able to get folders on top of files by adding "sortDirectoriesFirst": true to brackets.json. From Help menu select Open Preferences File and then copy and paste the preference that I mentioned above. Make sure you add a comma to the end of the above line before you paste it in as the last preference.

@core-ai-bot
Copy link
Member Author

Comment by hmaesta
Wednesday May 07, 2014 at 19:40 GMT


Thank you,@RaymondLim! 👍
I hope this option can be part of UI some day. :-)

Now I am just waiting 'two-row layout' [#7669] to Brackets become perfect. Haha.

@core-ai-bot
Copy link
Member Author

Comment by AgtLucas
Sunday May 11, 2014 at 19:47 GMT


@RaymondLim 👍 Thanks!

@core-ai-bot
Copy link
Member Author

Comment by jonathanphz
Thursday Aug 07, 2014 at 16:23 GMT


Awesome - this works great. Thanks@RaymondLim

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Aug 07, 2014 at 20:15 GMT


Adding 'fixed' tag since this was implemented back in PR #7138

@core-ai-bot
Copy link
Member Author

Comment by angieskazka
Thursday Jan 15, 2015 at 16:43 GMT


@RaymondLim ohmygod, thanks! suddenly so much pain is taken away

@core-ai-bot
Copy link
Member Author

Comment by lmartins
Thursday Mar 12, 2015 at 10:16 GMT


Thank you for the fix.

@core-ai-bot
Copy link
Member Author

Comment by BoeFly
Wednesday Apr 01, 2015 at 14:43 GMT


@RaymondLim You da man!

@core-ai-bot
Copy link
Member Author

Comment by imechemi
Tuesday Sep 08, 2015 at 17:54 GMT


@RaymondLim 👍 this was painful for those who are switching from other editors like sublime.

@core-ai-bot
Copy link
Member Author

Comment by philchanet
Wednesday Dec 23, 2015 at 14:32 GMT


Thanks a lot@RaymondLim - I love Brackets even more, now.

@core-ai-bot
Copy link
Member Author

Comment by Tusko
Monday Jan 11, 2016 at 11:01 GMT


@RaymondLim Thank you so much!

@core-ai-bot
Copy link
Member Author

Comment by HenrichJones
Monday Jan 18, 2016 at 14:31 GMT


@RaymondLim Thank you so much, awesome!!!

@core-ai-bot
Copy link
Member Author

Comment by antonio-gomez
Friday Feb 19, 2016 at 06:48 GMT


Great to have this feature, just add in your brackets.json preferences the following:
"sortDirectoriesFirst": true

@core-ai-bot
Copy link
Member Author

Comment by mintjava
Friday Jun 10, 2016 at 05:59 GMT


@antonio-gomez is there any thing i should enable or do something after doing this. Why am i not able to get it though i change it correctly.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Friday Jun 10, 2016 at 15:02 GMT


@mintjava It sounds like you have a syntax error in your preferences json file. Try installing the JSONLint extension -- it will tell you if there are any errors in that file.

@core-ai-bot
Copy link
Member Author

Comment by stevemillerbrewd
Saturday Jan 14, 2017 at 15:49 GMT


@RaymondLim! Cheers buddy :)

@core-ai-bot
Copy link
Member Author

Comment by ghost
Saturday Jan 28, 2017 at 20:27 GMT


Excellent, Thank you for that recommendation@RaymondLim.

I had a comma at the end of the (sortDirectoriesFirst) instruction, which it didn't like.

Once I removed that comma, Brackets sorted the folders and files as expected! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant