Operating system or device - Godot version:
2.1 alpha
Issue description (what happened, and what was expected):
There is no way to reorder scripts on a script list dock currently:
Link to minimal example project (optional but very welcome):
The scripts are alphabetically listed too, which is nice. So maybe after dragging them around, sorting them back could be an option. (something like this) -- Great idea
@Dillybob92 You can move them around or go back to default sorting. Very nice both ideas I support.
I haven't seen any IDE that lets you sort the list of open files, it's
generally alphabetical..
On Wed, May 25, 2016 at 3:39 PM, trollworkout [email protected]
wrote:
@Dillybob92 https://github.com/Dillybob92 You can move them around or
go back to default sorting. Very nice both ideas I support.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/4775#issuecomment-221666935
@reduz ~ Even if we don't allow it, it would be nice to be able to list open files in a tree-like fashion, especially when there are scripts with the same name in different folders.
Allowing for drag and drop reordering would mean less trouble for users that want it another way.
I was thinking you could probably remove the side bar altogether and use the tabs up top instead which could also be freely re-organized
I personally like the way Visual Studio Code handles this. It shows a list of working files in order of opening (those can be dragged and reordered) and also a tree of files below.
@reduz About that editor sorting opened files list: I would request code tabs reordering (which every code editor have), but we don't have tabs so I'm requesting ability to reorder the thing that we have...
But in the end I'm able to understand the reason why we might not have this functionality and I would love to just hide this panel and depend on Open dominant script on scene change
option but unfortunately it's not working very well and it's hard to use it without script panel (which for me is almost always bloated by very high amount of opened scripts).
there used to be tabs, but the horizontal space would be cluttered really
quickly
regarding high amount of scripts, i'm not sure if having them ordered by
date opened would be a good idea, it's really easy to add this back,
including drag&drop rearranging, but would it really be an improvement?
If it helps, you can always use alt-ctrl-o and type the name of the script,
this generally works best when you have that many..
On Wed, May 25, 2016 at 4:30 PM, kubecz3k [email protected] wrote:
@reduz https://github.com/reduz But in the end I'm able to understand
the reason why we might not have this functionality and I would love to
just hide this panel and depend on Open dominant script on scene change
option but unfortunately it's not working very well and it's hard to use it
without script panel (which for me is almost always bloated by very high
amount of opened scripts).—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/4775#issuecomment-221681418
regarding opening the dominant script, if you find a bug, please let me
know.. would not be nice if this fails
On Wed, May 25, 2016 at 4:36 PM, Juan Linietsky [email protected] wrote:
there used to be tabs, but the horizontal space would be cluttered really
quicklyregarding high amount of scripts, i'm not sure if having them ordered by
date opened would be a good idea, it's really easy to add this back,
including drag&drop rearranging, but would it really be an improvement?If it helps, you can always use alt-ctrl-o and type the name of the
script, this generally works best when you have that many..On Wed, May 25, 2016 at 4:30 PM, kubecz3k [email protected]
wrote:@reduz https://github.com/reduz But in the end I'm able to understand
the reason why we might not have this functionality and I would love to
just hide this panel and depend on Open dominant script on scene change
option but unfortunately it's not working very well and it's hard to use it
without script panel (which for me is almost always bloated by very high
amount of opened scripts).—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/4775#issuecomment-221681418
@reduz I'm also not so sure if reordering by opening time is the best option, in general I would like to describe my use case because there are reasons why script panel is not usable for me (why I'm ending with so many scripts opened):
Open dominant script on scene change
(not blaming the option just explaining use case, the current main problem of this option is described here: https://github.com/godotengine/godot/issues/3638)I thought that this list of opened files is actually vertical tabs :). Even in browsers I use options to display tabs vertically(because in this case I can handle more tabs). If this list doesn't display all tree, this is tabs, right? :) And I also missing a feature to arrange this vertical tabs like I want. Especially if opened scripts is messed with opened class docs. Actually it would be nice to have it like in Visual Studio Code or QTCreator(usually configured in the same way). They have filesystem tree and vertical tabs in one vertical panel.
I left the code open to implement rearranging of scripts, we can try it
easily, but I seriously doubt it's going to help organization if you have a
lot of open ones..
Aren't better ways to do this?
kubecz3k: How about using a tree? could add an option so files are shown
together with a Tree of the filesystem..
On Thu, May 26, 2016 at 2:48 PM, Biliogadafr [email protected]
wrote:
I thought that this list of opened files is actually vertical tabs :).
Even in browsers I use options to display tabs vertically(because in this
case I can handle more tabs). If this list doesn't display all tree, this
is tabs, right? :) And I also missing a feature to arrange this vertical
tabs like I want. Especially if opened scripts is messed with opened class
docs. Actually it would be nice to have it like in Visual Studio Code or
QTCreator(usually configured in the same way). They have filesystem tree
and vertical tabs in one vertical panel.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/4775#issuecomment-221944019
Not critical for the upcoming 2.1, so moving to the next milestone.
I think we might do it better if we allow assigning categories to scripts, and then sorting them by said categories.
That would be useful for me since sometimes, when I do a big refactor, I have two groups of open scripts, new and old. Also, it would be pretty useful to be able to divide them into "objects", "skills", etc., without having to prefix them for a nicer alphabetical sort.
I really like @bojidar-bg's idea of the categorical approach.
Real world example:
Edit: Then you could collapse it too, so drag / drop most likely wouldn't be needed
@Dillybob92 I disagree a bit though, using the parent folder of a script is not the best idea in some cases. Example (real-world):
res://
- creatures
creature.gd
- heroes
- <name>
<name>.gd
<name>_skill1.gd # Or whatever
- ...
In this case it would categorise all heroes under their respective name, which won't be better than before, and would be certainly worse than a simple tree of folders with scripts...
Yah, maybe a checkmark for recursive directory? I was just thinking of something like this:
But yeah, you're right. it will most likely be messy
Most helpful comment
I left the code open to implement rearranging of scripts, we can try it
easily, but I seriously doubt it's going to help organization if you have a
lot of open ones..
Aren't better ways to do this?
kubecz3k: How about using a tree? could add an option so files are shown
together with a Tree of the filesystem..
On Thu, May 26, 2016 at 2:48 PM, Biliogadafr [email protected]
wrote: