Sublime Forum

Minor sidebar display issue when file in >1 window

#1

Super minor and low priority but I thought I would mention it.
The sidebar highlights the wrong set of files when a file has focus in more than one window.
Maybe caused by the SortTabs package.
Maybe an optimization to avoid un-highlighting the last visible file if the current file already has focus, but omits the check if it is in the same window?

Sublime test 3083
Packages: SortTabs

Repro (might be simplified):

  1. /View /Sidebar, to display the tree view of the project on the left side of the window.
  2. Open a bunch of project files.
  3. /View /Layout /Columns:2
  4. Move some files to one column and some to another.
  5. Drag and drop a tab (for a file) onto another monitor.
  6. Back in main window, open the same file that was dragged again. So now the same file is open in two separate windows.
  7. In main window, Ctrl-Tab to cycle through the windows. Stop when two files are highlighted.
    Expect: the sidebar highlights the files that are visible in the window. Maybe it is supposed to highlight just the one with focus.
    After restarting the same behavior is observed.
    Actual: One of highlighted file names is not visible and one of the visible files is not highlighted.

Another related issue: After restarting Sublime Text, the directory tree does not have the visible file names highlighted.
Files are highlighted after Ctrl-Tab.

0 Likes