Bug 435780 - Currently shown tabs are shifting when changing current file
Summary: Currently shown tabs are shifting when changing current file
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 20.12.3
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-15 16:17 UTC by Jaromir Stehlik
Modified: 2022-02-20 22:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Stehlik 2021-04-15 16:17:06 UTC
Let's assume I have opened more tabs than could be seen at once on the screen. You can move currently shown tabs with toolbar arrows on the right. 

For example I rearrange this to show bunch of similar text files I want to switch rightaway and I want the same tabs to be shown, even if I edit or save a text file.

But as soon as I start changing the document, this view resets: The currently edited document tab shifts to the right, showing all documents to the left of currently edited in current tab arrangement.

It would be to be this behavior either default or there should be same option in View to fix current tab view as is, not to shift automatically after start of editing current file.
Comment 1 Jaromir Stehlik 2021-04-15 16:23:46 UTC
It is worth saying that this happens only when editing a saved file and tab updates to the one with not-saved icon.
Comment 2 Waqar Ahmed 2022-02-20 17:32:46 UTC
*** This bug has been marked as a duplicate of bug 440585 ***
Comment 3 Waqar Ahmed 2022-02-20 22:05:37 UTC
Git commit 5e2df994ad6eba40d493f52487df2b98b28f193a by Waqar Ahmed.
Committed on 20/02/2022 at 20:40.
Pushed by cullmann into branch 'master'.

Fix tab jumping with unlimited tabs

If we set the icon every time file is modified, it causes a lot of
layouting resulting in the tab bar getting scrolled.

With this change instead of setting an icon, we make the text italic to
show that this tab has modified content. This is more like other
editors.
Related: bug 440585

M  +45   -0    kate/katetabbar.cpp
M  +1    -6    kate/kateviewspace.cpp

https://invent.kde.org/utilities/kate/commit/5e2df994ad6eba40d493f52487df2b98b28f193a