SUMMARY When the name of a text file contains an ampersand (&) and it is opened in Kate, the name is incorrectly shown without the ampersand in the tabbar. STEPS TO REPRODUCE 1. Make sure 'Settings > show tabs' is enabled. 2. Open a text file called 'terms&conditions.txt' in Kate 3. Press the 'Alt' key OBSERVED RESULTS The document name in the tabbar is shown as 'termsconditions.txt'. Pressing 'Alt' underlines the letter 'c', confirming that the ampersand in the document name has been interpreted as an Alt-accelerator. EXPECTED RESULTS The document name should be shown correctly in the tabbar with the ampersand. SOFTWARE VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.22.4 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Also reproducible on KDE Neon unstable (updated today)
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/475
Git commit e01219cc00107d3864c2ac1487ea54f8c445fcde by Jan Paul Batrina. Committed on 23/08/2021 at 05:39. Pushed by cullmann into branch 'master'. Escape shortcut mnemonic markers (&) in tab texts By default, automatic accelerators are enabled (at least in KDE), and thus '&' characters in tab names are erroneously treated as requests for accelerators. M +8 -2 addons/search/plugin_search.cpp M +4 -1 kate/katetabbar.cpp M +4 -1 kate/kateviewspace.cpp https://invent.kde.org/utilities/kate/commit/e01219cc00107d3864c2ac1487ea54f8c445fcde