https://bugs.kde.org/show_bug.cgi?id=441929
Bug ID: 441929 Summary: Should show file name first when "Show path in titlebar" is active Product: kate Version: 21.08.1 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: zl...@hotmail.com Target Milestone: --- Created attachment 141260 --> https://bugs.kde.org/attachment.cgi?id=141260&action=edit Unable to see the actual file name in a taskbar with narrow items SUMMARY "Show Path in Titlebar" in both Kate and KWrite is a very useful feature, enabling the user to always be aware of exactly which file is being edited in his file system, avoiding the risk of confusion. However, the most important information, the file name itself, is sometimes difficult to pinpoint in a first glance. Currently the titlebar is displayed in this format: <full_directory_path>/<file_name> — KWrite i;e: ~/src/kernel/archlinux/include/linux/compiler_types.h — KWrite Since we are naturally trained to read from left to right, we have to skim through the full path before we reach the file name itself, which is slightly under-productive. Even worse, the file name itself becomes unreadable if you are using the "Task Manager" in a populated bottom panel (see screenshot). So I believe it is good practice to show the file name first, to the left of the file's directory path, something like: "<file_name>" — <full_directory_path> — KWrite" Maybe the character "—" is not the ideal separator between the file name and the directory, as alternatives maybe we could use "@" or ":" or even something else entirely. So for my example we would have: compiler_types.h — ~/src/kernel/archlinux/include/linux/ — KWrite compiler_types.h @ ~/src/kernel/archlinux/include/linux/ — KWrite compiler_types.h : ~/src/kernel/archlinux/include/linux/ — KWrite STEPS TO REPRODUCE 1. Enable the feature in Kwrite/Kate menus: Settings -> Show Path in Titlebar OBSERVED RESULT The titlebar shows the full path before the file name, in the format: "<full_directory_path>/<file_name> — KWrite" EXPECTED RESULT The titlebar should show the file name first: "<file_name> — <full_directory_path> — KWrite" SOFTWARE/OS VERSIONS Kate/KWrite: 21.08.1 Operating System: Arch Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION N/A -- You are receiving this mail because: You are watching all bug changes.