Page 1 of 1
Option to reset source file tab order in the IDE
Posted: Thu May 04, 2023 6:23 am
by ozzie
Using PB 6.01, PB 'remembers' the tab order of source files between IDE sessions. However, that can be a problem when trying to find the tab for a particular source file. Currently I have 3 lines of tabs covering over 40 source files in my project (and there are more than 150 source files in the project). The tab order is now rather random. Could we have an Edit or Project menu item to reset the tab order to alphabetical?
Re: Option to reset source file tab order in the IDE
Posted: Thu May 04, 2023 3:00 pm
by jassing
ozzie wrote: Thu May 04, 2023 6:23 am
Using PB 6.01, PB 'remembers' the tab order of source files between IDE sessions. However, that can be a problem when trying to find the tab for a particular source file. Currently I have 3 lines of tabs covering over 40 source files in my project (and there are more than 150 source files in the project). The tab order is now rather random. Could we have an Edit or Project menu item to reset the tab order to alphabetical?
+1 - having a native sort option would be nice. (or have pre-open or post-close triggers)
While not ideal by any stretch, you could sort the project file's <section name="files"> section.
when I worked on an a very large project, I had sorted mine by 'last edit' of the file (so most recently edited files were 1st).
Re: Option to reset source file tab order in the IDE
Posted: Fri May 05, 2023 6:23 pm
by HeX0R
It had been requested like it is now, which makes sense for regular projects, you sort them once, and forever.
Of course no one thought about projects with >150 files.
I've done that change to the IDE, anything else is on you, it is open source, just add some sort options.
The only limit is your imagination

Re: Option to reset source file tab order in the IDE
Posted: Sat May 06, 2023 3:22 am
by ozzie
Thanks. Remembering the tab order for a few sessions is definitely useful, but after completing related changes to several source files it will be helpful just to reset the tab order.
Re: Option to reset source file tab order in the IDE
Posted: Fri Dec 29, 2023 12:27 pm
by STARGĂ…TE
To my opinion, the current situation is not optimal.
Of cause, it is a good idea to store the tab order in the project file.
However, in huge projects (I have a project with 200 files!), not all files are open at once, which means, these files (tabs) lose their order index and messed up in the project file list. Also if you want to add a new file to the project, this file will be added at the end of the project file list and if you want to bring this file at the right position, you have to open all file and close all again. Bad practice.
To my opinion, at least the project file list in the project tab should reserve its original alphabetical order.
It should be also an option to enable the "old" alphabetical order or the "new" custom order within the project file settings.
Re: Option to reset source file tab order in the IDE
Posted: Sun Dec 31, 2023 11:51 pm
by ozzie
I would like an Editor Preference to set the tab order to alphabetical. I have about 170 .pbi files in my project, and as I write this I have 46 of those files open and displayed across two tab lines. If I'm looking for a particular file which I don't even know that I have currently open, it would be much easier to find it if they are displayed in alphabetical order.