Bug 475770 - LSP client view does not allow middle click or a shortcut to close tabs
Summary: LSP client view does not allow middle click or a shortcut to close tabs
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-18 03:22 UTC by Quinten Kock
Modified: 2024-03-23 21:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quinten Kock 2023-10-18 03:22:02 UTC
SUMMARY
The LSP plugin panel (where you can see things like references) uses tabs (which is good). However, closing these tabs can only be done by clicking the (small) (X) button, or with the Close All Dynamic Reference Tabs action.

It would be nice if these tabs could be closed by middle clicking them. Unfortunately implementing this easily seems to depend on https://bugreports.qt.io/browse/QTBUG-82408 (how is it done for the global Kate tabbar? is there a KF widget for it or is it implemented inside Kate/KTextEditor?)

Additionally, being able to close the current reference tab with a shortcut might be nice too.

STEPS TO REPRODUCE
1. Open one or more reference tabs using the LSP client
2. Middle click one of the tabs

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
The middle clicked tab closes.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Also an issue on master
Comment 1 Christoph Cullmann 2024-03-23 21:42:57 UTC
https://invent.kde.org/utilities/kate/-/merge_requests/1411

implemented in master, if I am not mistaken.