Bug 375141 - folder view: tooltip should show full file name
Summary: folder view: tooltip should show full file name
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 5.8.4
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 14:59 UTC by arne anka
Modified: 2017-01-18 15:58 UTC (History)
1 user (show)

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


Attachments
Example screenshot (287.65 KB, image/png)
2017-01-17 09:45 UTC, Eike Hein
Details
name w/o spaces is truncated (20.65 KB, image/png)
2017-01-17 20:16 UTC, arne anka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka 2017-01-16 14:59:11 UTC
items in folder view widget should show full file name on hover/in tooltip.
i sometimes have several files starting with the same string, which appear already truncated and thus indistinguishable in the folder view -- but even when hovering, the name ist still truncated, rendering the information on hover basically useless for my purposes.

i think, at least on hover the full name shall appear -- if the hover has room for previews, the full name should fit even better (if necessary, break after X chars, but do not truncate).
Comment 1 Eike Hein 2017-01-17 09:44:06 UTC
I can't reproduce this. I renamed a file to "This is a testof a hugely long file name that is probably going to be truncated according to the reporter.jpg" and it's not truncated in the tooltip. Can you add a screenshot?
Comment 2 Eike Hein 2017-01-17 09:45:21 UTC
Created attachment 103455 [details]
Example screenshot
Comment 3 arne anka 2017-01-17 20:16:11 UTC
well, _your_ exmaple has spaces, whereas my file names usually don't.
a file name
abcdefghijklmnopqrstuvwxyz0123456789.txt
is truncated.

see attched screenshot
Comment 4 arne anka 2017-01-17 20:16:47 UTC
Created attachment 103468 [details]
name w/o spaces is truncated
Comment 5 Eike Hein 2017-01-18 15:57:25 UTC
Git commit 593f8183dd4ee8e5bc62b4b7bb9fa208d4be3fea by Eike Hein.
Committed on 18/01/2017 at 15:55.
Pushed by hein into branch 'master'.

Set wrapMode to Text.WrapAnywhere.

Summary:
Means long main texts don't get truncated. One of the main uses
for tooltips is to show full text for things that are truncated
in the usual UI, so this is a bad default.

Reviewers: #plasma, mart

Subscribers: plasma-devel, #frameworks

Tags: #plasma, #frameworks

Differential Revision: https://phabricator.kde.org/D4189

M  +1    -0    src/declarativeimports/core/private/DefaultToolTip.qml

https://commits.kde.org/plasma-framework/593f8183dd4ee8e5bc62b4b7bb9fa208d4be3fea
Comment 6 Eike Hein 2017-01-18 15:58:24 UTC
The fix was in plasma-framework rather than Folder View (it's in the Plasma default tooltip code), so it will come when you update to the next Frameworks release.