Bug 493690

Summary: Wishlist: better tab management
Product: [Applications] kate Reporter: Samuel Jimenez <the.real.samuel.jimenez>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: christoph, waqar.17a
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: example menu

Description Samuel Jimenez 2024-09-26 13:38:31 UTC
Created attachment 174102 [details]
example menu

SUMMARY
When many tabs are open in Kate, handling them becomes problematic. Some quality of life improvements can be seen in Firefox which would benefit Kate.

DESIRED FEATURES
1. Close Multiple Tabs 
	Close Tabs to Left
	Close Tabs to Right
	Close Other Tabs
2. Move Tab 
	Move to Start
	Move to End
	Move to New Window
3. Reopen Closed Tab
4. Ability to select multiple tabs (e.g. Shift-click)
Comment 1 Waqar Ahmed 2024-09-27 10:13:31 UTC
Some of these are already available.

See File menu and search for "Reopen latest closed documents"
Comment 2 Bug Janitor Service 2024-09-27 10:22:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1600
Comment 3 Christoph Cullmann 2024-09-28 17:18:10 UTC
Git commit 23b5768c3b9d3f8b9c6c5d1840787863addc13da by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 28/09/2024 at 17:13.
Pushed by cullmann into branch 'master'.

Add 'reopen latest closed documents' to tab context menu

M  +1    -2    apps/lib/katemainwindow.cpp
M  +1    -0    apps/lib/kateviewspace.cpp

https://invent.kde.org/utilities/kate/-/commit/23b5768c3b9d3f8b9c6c5d1840787863addc13da
Comment 4 Waqar Ahmed 2025-10-24 10:32:30 UTC
This is mostly done, if you are missing something feel free to create a bug for the required action.
Comment 5 Waqar Ahmed 2025-10-24 10:33:56 UTC
move actions are still missing.

@Christoph should we add those?
Comment 6 Waqar Ahmed 2025-10-24 10:34:36 UTC
> 4. Ability to select multiple tabs (e.g. Shift-click)

Not sure about supporting this. I dont see a clear usecase.
Comment 7 Samuel Jimenez 2025-10-24 14:51:04 UTC
(In reply to Waqar Ahmed from comment #6)
> > 4. Ability to select multiple tabs (e.g. Shift-click)
> 
> Not sure about supporting this. I dont see a clear usecase.

Case 1: A project is being refactored. Multiple tabs need to be moved. Currently only one at a time may be.

Case 2 A bug has been found, squashed, and tested. All files opened during the debugging process should be closed. Currently the only way to do is individually. Selecting multiple would permit them to close together.

Case 3: A merge has been reviewed and merged. A diff window is open for each file merged. These are no longer needed and should close in 4 keystrokes rather than N keystrokes.
Comment 8 Waqar Ahmed 2025-10-27 11:43:01 UTC
You can try to use the Documents plugin for some of this, e.g., closing multiple diff views at once or closing all docs in a directory for e.g.,

But other than that, "multiple tab selection" is not happening. Sorry. It is out of scope for us due to the complexity and time required to implement it versus actual usefulness.
Comment 9 Christoph Cullmann 2025-10-27 19:05:10 UTC
(In reply to Waqar Ahmed from comment #8)
> You can try to use the Documents plugin for some of this, e.g., closing
> multiple diff views at once or closing all docs in a directory for e.g.,
> 
> But other than that, "multiple tab selection" is not happening. Sorry. It is
> out of scope for us due to the complexity and time required to implement it
> versus actual usefulness.

Yes, that looks really work intensive and will for sure just be used by << 1% of the user base.

If you provide a patch yourself and it is not too much code to maintain, one might reconsider, but I don't think we should advertise this to team members to work on.
Comment 10 Samuel Jimenez 2025-10-29 18:50:25 UTC
I didn't realize the Documents plugin was capable of that. Thanks! 

I don't personally forsee having time to create a patch anytime soon, so I suppose the plugin will have to do.