Tapatalk

Ordering of the file tabs is illogical on creation of new files on using single line - drop down file list

Ordering of the file tabs is illogical on creation of new files on using single line - drop down file list

2
NewbieNewbie
2

PostDec 27, 2024#1

I have about 50 files open in UltraEdit at any given time. These are a mix of code files, snippet of something I need to analyze like EDI contents, etc. What I cannot figure out is how UE decides what it's going to name new files and order them in the tab bar. Case in point, I just opened UE, clicked the new file button. This gave me a file named "Edit8". The tab appeared somewhere in the middle of the other tabs I have open. I then copied a line out of this file and hit the "new" file button again to paste just this one line into. This time, I got a new file named "Edit20". Edit20 appeared many tabs before the Edit8 I was just on. To make this more confusing, the tabs in the tab bar are not sorted alphabetically, so I don't know why UE decided to create Edit20 nor do I know why it decided to put the tab where it did. I do know it's really hard to jump around because I can't easily find the tab I was just on.

I also utilize the "Open files" sidebar. This makes it easier to jump around, but the order of files in this list is not the same as the tabs across the top.

Before I ever renew my subscription for UE, I would love to see this functionality cleaned up. If I create a new file (or open one), I would love to see that file appear directly after the file I'm currently on both in the side bar and the tabs across the top. I don't really care what UE names new files, but I really don't like what seems like a random assignment of order in the file list and tabs.

I don't understand the "Last file" and "Next file" and "Previous tab" and "Next tab" buttons under the "Window" ribbon menu. Those don't seem to do anything I expect.

In short, I would love to see the file navigation made sensible. I would never say that Visual Studio is anywhere close to perfect, but I would say they have thought about file navigation. Maybe that could be used as a guide.

Thanks

6,824625
Grand MasterGrand Master
6,824625

PostDec 28, 2024#2

Please open Advanced - Settings or Configuration - Application layout - File tabs and let us know your file tabs configuration as otherwise we could only guess.

Miscellaneous
  • [ ] Double-click tab will close file
  • [ ] Middle-button-click will close file
  • [ ] MDI close button closes active file (not file tabs)
  • [ ] Scroll tabs with mouse wheel
  • After current tab is closed, move to:
    • ( ) previously active tab
    • ( ) nearest left tab
    • ( ) nearest right tab
    • ( ) last visible tab
  • [ ] Sort tabs on file open
    • ( ) By name
    • ( ) By extension
    • ( ) By path
    • ( ) By modification date
  • [ ] Display status icons
Operation
  • [ ] Dockable tabs
  • Types
    • ( ) Single line - scrollable
    • ( ) Single line - drop down file list
    • ( ) Multiline
  • Close tab button
    • ( ) None
    • ( ) On tab bar
    • ( ) On active tab
    • ( ) On all tabs
Let us know how many lines are used by you for file tabs on using the Multiline option.

Many of these options can be quickly changed by right clicking on a file tab and clicking on the menu items in context submenu File tabs.

The button Help can be used to get more information about the configuration settings.

It is of course possible to configure that new files respectively newly opened files are appended at (bottom) right to the file tabs bar.

The Open files list view lists the file names of the opened files by default in order of opening them which can be different to the file tabs order. There can be right clicked into the Open files list view and clicked on some of the menu items in the context menu of this view to change the listing.

There is also the floating window Windows listing also the opened files which can be opened by clicking in traditional menu Window on the menu item Windows… or the contemporary menu Window on menu item All windows or on ribbon tab Window in last but one group List on item All windows. An information about the user interface mode used by you would help us to help you too.

See also the forum topis:

2
NewbieNewbie
2

PostDec 28, 2024#3

Thank you for your response. Here are the settings you asked about:

Miscellaneous
  • [X] Double-click tab will close file
  • [X] Middle-button-click will close file
  • [X] MDI close button closes active file (not file tabs)
  • [ ] Scroll tabs with mouse wheel
  • After current tab is closed, move to:
    • (X) previously active tab
    • ( ) nearest left tab
    • ( ) nearest right tab
    • ( ) last visible tab
  • [ ] Sort tabs on file open
    • ( ) By name
    • ( ) By extension
    • ( ) By path
    • ( ) By modification date
  • [X] Display status icons
Operation
  • [ ] Dockable tabs
  • Types
    • ( ) Single line - scrollable
    • (X) Single line - drop down file list
    • ( ) Multiline
  • Close tab button
    • ( ) None
    • ( ) On tab bar
    • ( ) On active tab
    • (X) On all tabs
You asked about the number of lines using the "Multiline" option. I do not have this turned on, but when I do, I show 3 rows of tabs. That can, of course, change depending on how I size UE.

You say above, "it is of course possible to configure that new files respectively newly opened files are appended at (bottom) right to the file tabs bar". Can you point me to the setting that controls this?

I scanned through the links you provided, in first link, I note that you responded, "the file tabs are displayed by default in the order as opened with first opened on left side and last opened on right side as you want it". That may be the behavior for opened files, but it is definitely not the case when creating a new file. As I said, when you click the "new file" button, the tab seems to be positioned randomly. I'm sure it's not really random, but the placement is not helpful. Like I said, I would prefer a new file be positioned just after the current file. Even adding it to the very end of the tabs/list would help.

6,824625
Grand MasterGrand Master
6,824625

PostDec 29, 2024#4

I used first your File tabs settings with one difference: I selected Multiline instead of Single line - drop down file list.

There was automatically opened on start of UltraEdit the new file Edit1. I pressed Ctrl+O for opening the file Open dialog window, clicked on the file File_50.txt created in this directory before using a command line together with other 49 files, pressed and hold left Shift and clicked next on the file File_01.txt to select the fifty files and clicked on button Open. Yes, Windows (not UltraEdit) requires selecting multiple files in reverse order from last to first to have the file names listed in the correct order in the File name edit field before clicking on button Open. UltraEdit closed empty Edit1 file and opened the fifty files and listed them in the multiline file tabs bar in the correct order as opened in this order.

I pressed Ctrl+N and UltraEdit created Edit2 with appending its tab to the end of the file tabs bar. I entered some text into this new file. Then I used again Ctrl+O for opening one more named file. I redid these steps once more before finally created a third time a new file with Ctrl+N. The result in toolbar/mode with traditional menus (with my custom toolbar hidden as not relevant here) is:
file_tabs_bar_multiline.webp (7.1KiB)
File tabs bar of type multiline
I think this is the file tab add behavior you want.

I change the configuration for the file tabs bar by right clicking on the file tab Edit4 and clicking in context submenu File tabs on the menu item Single line - drop down file list. The display changed to:
file_tabs_bar_single_line_drop_down_file_list_1.webp (5.78KiB)
File tabs bar of type single line - drop down file list, example 1
In this mode the file tab of the active file is preferred displayed between half and ⅔ of the available horizontal space by the used Microsoft GDI+ library. The last active file Edit4 is at the end of the file tabs. There are displayed for that reason the file tabs of the files File_46.txt to Edit4 and then the tabs of the files at the beginning of the file tabs bar File_01.txt to File_06.txt. That reordering of the file tabs on the single line file tabs bar is most likely done by the GDI+ library and not by code in UltraEdit, but I do not know that for sure. Opening the drop down file list and clicking on File_23.txt results in moving the file tabs bar to get the file tab File_23.txt displayed at ⅔ of the available horizontal space.
file_tabs_bar_single_line_drop_down_file_list_2.webp (5.25KiB)
File tabs bar of type single line - drop down file list, example 2
There is pressed now Ctrl+N for the creation of one more new file. The single line file tabs bar is still full. The Microsoft GDI+ library inserts the file tab Edit5 not at the end as expected, but between ½ and ⅔ of the available horizontal space for the file tabs bar beginning from first file tab File_01.txt. There can be seen now unexpected the file tabs File_02.txt to File_16.txt with the file tab Edit5 inserted at ⅔ of the available file tabs bar horizontal space. The problem is that this position is kept for Edit5 even on selecting from the drop down file list, for example, File_46.txt and next again Edit5 in the drop down file list. The type Single line - drop down file list favors displaying a file tab in the middle of the horizontal space or right of it. There are exceptions as I could see in my tests. Sometimes a new file tab is inserted on the file tabs bar at most right position of currently displayed file tabs, but the preferred behavior is inserting a new file tab between ½ and ⅔ of the available horizontal space of the file tabs bar.
file_tabs_bar_single_line_drop_down_file_list_3.webp (5.11KiB)
File tabs bar of type single line - drop down file list, example 3
file_tabs_bar_single_line_drop_down_file_list_4.webp (5.29KiB)
File tabs bar of type single line - drop down file list, example 4
There is no UltraEdit option to override the Microsoft GDI+ library file tabs behavior on adding a file tabs bar on creation of a new file or on opening a file on using the type Single line - drop down file list.

There should be used the type Multiline which results in adding the file tab of a newly created opened file at the end of the file tabs bar on not using one of the sort options. The vertical space used by the multiline file tabs bar cannot be customized on using not dockable tabs. That was possible in the past with older versions of UltraEdit with checking the option Dockable tabs, but it looks like that is not possible anymore with UltraEdit 2024.2.0.39 on Windows 11 24H2 with GdiPlus.dll of version 10.0.26100.2454. The height of the multiline file tabs bar is automatically determined now even on using dockable tabs.

If the loss of vertical space for the edit area of a file is not acceptable which is the case on many files opened and UltraEdit application window is small or multiple views are opened on left and ride side, it is better using the type Single line - scrollable which adds the file tab of a newly created or opened file at the end of the file tabs bar on not using one of the sort options. Scrolling left/right on fifty files opened is perhaps not so handy as the drop down files list, but there can be used the Open files view docked on left or ride side with auto-hide feature enabled to get displayed vertically a list of opened files and select one to make it active. There can be also opened the Windows dialog window with a click on its item or by hotkey (after assigning a hotkey to the command List windows in the key mapping configuration) and activate a file from the vertical list in this window.

There could be used also the command palette feature to select quickly a named file currently opened as the file is in this case also in the recently opened files list. Ctrl+Shift+P for opening the command palette window and next entering \ for searching the recently opened files list and then entering file_23 and pressing RETURN activates the file File_23.txt. That keyboard method cannot be used for new created, unnamed files as such "file buffers" are not in the recently opened files list.

Conclusion: The file tabs behavior you would like can be achieved as long as not using the file tabs bar type Single line - drop down file list.