Bug 447623 - Show filename extension for truncated filenames, like Dolphin does
Summary: Show filename extension for truncated filenames, like Dolphin does
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: 5.23.4
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 422074 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-29 00:28 UTC by tomashnyk
Modified: 2023-04-10 01:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Different truncating (1.26 MB, image/png)
2022-01-13 00:23 UTC, tomashnyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomashnyk 2021-12-29 00:28:54 UTC
In the folder view, long filenames are truncated at the end, so for a filename like this: "Sample filename document from 2002.docx", it will get truncated to something like this: "Sample filename document fro..." (depending on your icon size and label width).  It would make more sense to truncate filenames from the middle for two reasons:
1) The file extension might be quite helpful at times (imagine you want to drag the file to be opened in certain app - extension will give you a hint as to which application would open it).
2) Similar files (or versions of each other) are quite often differentiated at the end. Imagine another document like this: "Sample filename document from 2003.pdf" - you could not tell it from the original one.

This has been requested once before: https://bugs.kde.org/show_bug.cgi?id=277882 - solved by not truncating at all in Dolphin.
Comment 1 Nate Graham 2022-01-12 00:30:26 UTC
Dolphin does truncate by default now, and it does it at the end.

Truncating in the middle would probably be worse. We've tried this before and it got reverted because people hated it. No can do, sorry.
Comment 2 tomashnyk 2022-01-12 01:08:46 UTC
But Dolphin shows the extension, Folder view does not. (issue number 1 in my original report). Should not at least that be consistent between the two?
Comment 3 tomashnyk 2022-01-13 00:23:41 UTC
Created attachment 145385 [details]
Different truncating

Here there are five different apps/functions truncating, from top):
1) Latte Window Title applet - it mimicks 2) Folder view .
2) Folder view - truncating from the end. 
3) Locally integrated menus (https://github.com/Zren/material-decoration) truncating in the middle (what I wanted).
4) Kate's tab - it just overflows without indicating it by three dots.
5) Dolphin - it truncates from the right but shows extension.

Of course, it would be great if this could be consistent (and maybe user-configurable) across Plasma, but should not at least 2) and 5) behave the same (preferrably the Dolphin way)?

I dare to reopen this. I accept that truncating from the middle is not going to happen in the near future, but could at least the file extension be shown?
Comment 4 Nate Graham 2022-01-13 20:15:21 UTC
Yes, showing the file extension to be consistent with Dolphin is reasonable.
Comment 5 Nate Graham 2023-04-10 01:23:06 UTC
*** Bug 422074 has been marked as a duplicate of this bug. ***