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)
Some of these are already available. See File menu and search for "Reopen latest closed documents"
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1600
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
This is mostly done, if you are missing something feel free to create a bug for the required action.
move actions are still missing. @Christoph should we add those?
> 4. Ability to select multiple tabs (e.g. Shift-click) Not sure about supporting this. I dont see a clear usecase.
(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.
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.
(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.
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.