[Xfce-bugs] [Bug 12126] [enh] Truncate filenames by inserting ellipsis in icon and compact view
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sun Aug 9 15:34:30 CEST 2015
https://bugzilla.xfce.org/show_bug.cgi?id=12126
--- Comment #1 from Mahe <markus.xp at web.de> ---
Created attachment 6408
--> https://bugzilla.xfce.org/attachment.cgi?id=6408&action=edit
Patch for adding filename truncation in icon and compact view.
This patch addresses the issue by adding filename truncation using ellipsis
insertion. It introduces the following 3 new xfconf values and respective
default values:
icon-view-text-lines: maximum amount of lines for filenames in icon view
(default: 4)
compact-view-text-width: maximum pixel width for filenames in compact view
(default: 300)
misc-truncate-filenames: boolean toggling the new truncate/ellipsize behavior
for filenames (default: TRUE)
I propose the variables to be kept as hidden settings.
I chose to not put the ellipsis at the end of the filenames as many other file
managers do it, but in the center. This will keep the file extension readable
in most cases which I find quite handy.
However if you deem this unsuitable, feel free to replace the occurences of
"PANGO_ELLIPSIZE_MIDDLE" with "PANGO_ELLIPSIZE_END" which will result in the
ellipsis being appended at the end instead.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list