SUMMARY When closing the git history view of a file, the left sidebar is closed. Usually (at least in my workflow), there was a selected sidebar opened before starting to look at the git history, e.g. the project view from which the git history view was opened. It would be very convenient, to restore the sidebar used before the git history view got opened. STEPS TO REPRODUCE 1. Open project view sidebar 2. Use context menu "Show Git History" on an arbitrary file 3. Hit close button of displayed git history sidebar OBSERVED RESULT No left sidebar is displayed, all are closed. EXPECTED RESULT The sidebar is opened that was used before hitting the "Show Git History" context menu entry. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Endeavour OS using KDE/Plasma (wayland) KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.109.0 Qt Version: 5.15.10
Agreed, would be good to have.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1428
Git commit da7a434df849ba4b2f0cbc7d07d7055a72b9497e by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 20/03/2024 at 20:10. Pushed by cullmann into branch 'master'. Restore last active toolview when closing file history M +9 -0 apps/lib/filehistorywidget.cpp M +5 -0 apps/lib/katemainwindow.h M +21 -0 apps/lib/katemdi.cpp M +13 -0 apps/lib/katemdi.h M +8 -0 apps/lib/ktexteditor_utils.cpp M +2 -0 apps/lib/ktexteditor_utils.h https://invent.kde.org/utilities/kate/-/commit/da7a434df849ba4b2f0cbc7d07d7055a72b9497e
Just checked the implemented behavior on a fresh master build. Works perfectly. Thanks for implementing this.