Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[PM] Begining of #2935 #3902

Closed
wants to merge 1 commit into from

Conversation

WebsiteDeveloper
Copy link
Contributor

First task for #2935
@GarthDB and @larz0 for deciding where to put this functionality in the UI

@WebsiteDeveloper
Copy link
Contributor Author

Maybe we could also implement an option to insert a user defined function for sorting the tree.
I'll look at that if you think it would be intresting to add.

@larz0
Copy link
Member

larz0 commented May 19, 2013

@WebsiteDeveloper I'll need to think about this. Would be nice to have a global preference screen.

@ghost ghost assigned adrocknaphobia May 21, 2013
@gruehle
Copy link
Member

gruehle commented May 21, 2013

To @adrocknaphobia to determine what sorting options we want to offer. After that it should go to XD to figure out the UI.

@WebsiteDeveloper
Copy link
Contributor Author

@adrocknaphobia any news on this?

@larz0
Copy link
Member

larz0 commented Jul 31, 2013

Thoughts?

foldersorting

@WebsiteDeveloper
Copy link
Contributor Author

it seems to me a perfectly minimal UI until there is a Full preference panel.

@TomMalbran
Copy link
Contributor

Seems good to have a simple preference like this one, but not sure if the recent projects menu is the best place to place it. We already removed the project settings from this menu. Maybe add it to the project tree context menu?

@WebsiteDeveloper I recently created a new file compare function in FileUtils. You should use that one, passing the filenames you want to compare (adding the "0", "1", and other stuff when required). Check how it is done in the project tree sort function. You could even have the functions you created just return both filenames parsed and in the sort use the file compare function with those names.

@njx
Copy link

njx commented Jul 31, 2013

Agree with @TomMalbran - should be in the context menu.

@larz0
Copy link
Member

larz0 commented Jul 31, 2013

@njx ok cool. Last item in the context menu?

@njx
Copy link

njx commented Jul 31, 2013

Yup. It seems analogous to the sorting options in the working set context menu.

Ideally I think it would have a divider above it because it's different from the other items in the menu, but we already have a lot of dividers at the bottom of the file tree context menu. The main reason Refresh is under a divider is that it doesn't operate on the current selection, unlike all the other items. Maybe we could just group "Find in..." with the ones above it (removing the divider above that), then add a divider before this sorting option.

@larz0
Copy link
Member

larz0 commented Jul 31, 2013

@njx maybe we can get rid of refresh once we have the new file system?

@njx
Copy link

njx commented Jul 31, 2013

Yup, definitely. But that's a ways away.

@peterflynn
Copy link
Member

What about grouping this with Refresh? They're the only two menu items that operate on the whole tree rather than on the item you specifically right-clicked, so they have that in common... And they are both operations that update the display of the tree (without making edits or changing anything outside the tree).

@TomMalbran
Copy link
Contributor

Now that we have a new preference file, we could just place the preference inside that file as a string or as several boolean preferences? I don't think that we need a menu item for this, so the prefs files will be a good place to put them.

@redmunds
Copy link
Contributor

Was assigned to adrock, so marking "Needs Review". Note that this is now a preference, so it just needs a place in the UI.

@TomMalbran
Copy link
Contributor

Do we need all this sort options? We now have a pref to sort directories on top, which is what users asked for. If we want all the options, maybe an icon with a new menu like is done in th working set, might be the way to do the UI

@njx
Copy link

njx commented Apr 1, 2014

Sorry @WebsiteDeveloper for letting this languish.

It turns out this got implemented independently already as a preference in Brackets, and would eventually expose it in the standard preferences UI when we have that. We could also eventually decide to expose a number of preferences related to the file tree somewhere near the tree itself, but I don't think we would do that as a one-off in the project dropdown - most likely we would add a separate gear menu similar to the working set. For now, though, I don't think we should do anything until we know how the preferences UI story shapes up.

Closing - sorry again for leaving this hanging so long.

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

Successfully merging this pull request may close these issues.

9 participants