codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: Clicking on source code tab on top always places it to the right

Open yunkot opened this issue 10 months ago • 1 comments

What happened?

CodeLite has source code tabs on top with file names as captions. If there are more tabs that can fit on the screen, the current behavior is that when clicking on some tab, CodeLite moves visible tabs so the clicked tab will appear last on the right.

Imagine you have 10 tabs open, the last two are "Foo.cpp" and "Bar.cpp". The last one visible is "Bar.cpp". Now, if you click on "Foo.cpp", it gets selected and becomes the last visible tab on the right, while "Bar.cpp" disappears. Now the only way to get back to "Bar.cpp" is to click on three dots, look for its entry and select it. The more open tabs you get, the more annoying this gets - by selecting some tab in the middle, CodeLite always shifts everything to the right so eventually you end up at 1st visible tab, no matter what.

An expected behavior would be: CodeLite shouldn't do any changes to the visible tabs, unless you pick a tab that is not currently visible, e.g. by pressing on three dots and selecting it.

Version

Commit bd7704214057ecc0f174c12409b396875f9cbd3b

Operating system

Linux Mint 22.1 / Xorg / wxWidgets 3.2

yunkot avatar Feb 01 '25 19:02 yunkot

Another inconvenience caused by this is that you can not drag a tab to any position after it: clicking on the tab immediately activates it and thus moves it to the right (it actually looks bugged if you try to drag it at this point). The only workaround is to select tabs one at a time to the right and then drag them before the tab in question, which can be quite time consuming.

yunkot avatar Feb 16 '25 17:02 yunkot