! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Word wrapping in file names.
Status:
RESOLVED: MOVED

Comments

Description lockywolf 2019-03-17 06:14:49 CET
I use files with very long names. I cannot really avoid it, and even if I make Thunar fullscreen, working with these long file names is not very convenient.

Is it possible to introduce multi-line names for files in Thunar? Pehaps, the actual number of lines could be configurable and be set to 1 by default, to preserve current behaviour.
Comment 1 Andre Miranda editbugs 2019-03-17 18:58:00 CET
Are you using the latest Thunar (1.8.4)? Which view mode?
Icon view (ctrl+1) supports multi-line.
Comment 2 lockywolf 2019-03-18 02:08:04 CET
Created attachment 8345 
Detailed view multiline file names.
Comment 3 lockywolf 2019-03-18 02:11:46 CET
I am using the 'Detailed' view.

I'm uploading a screenshot of a folder where I keep books with long names, which list authors and title.
Comment 4 Theo Linkspfeifer editbugs 2020-05-21 13:23:35 CEST
This can be done by setting wrap-mode and -width.

https://developer.gnome.org/gtk3/stable/GtkCellRendererText.html#GtkCellRendererText--wrap-mode
Comment 5 Andre Miranda editbugs 2020-05-23 02:44:24 CEST
Created attachment 9894 
screenshot

Tested with GtkInspector, kinda works setting "wrap-width: 30", "ellipsize: PANGO_ELLIPSIZE_NONE" and "alignment: PANGO_ALIGN_LEFT", but I couldn't make the row grow vertically.

Even if that worked, I think it would be weird to have rows of variable height. Other file managers use PANGO_ELLIPSIZE_MIDDLE, wouldn't that help with OP's problem?
Comment 6 lockywolf 2020-05-23 06:40:32 CEST
I personally don't see any problem with uneven rows. I always favour usability/efficiency to beauty or uniformity.

But for uniformity enjoying people, it is possible to pre-compute the maximal row height and just draw every entry of this height. This may seem like a waste of space, but I think that readability is worth it.

The "almost" instant example is directories with scientific papers, which would contain the author names, the date, and the "quite long" paper title. Potentially a publishing body too, although this is usually substitutable for the title.

For example, I have a paper called "Christos_Papaconstantinou_Variabilious_Daskalakis_Lutz_Bluez___Fri_Feb__8_010243_1919_CST_Extortion-strategies-resist-disciplining-when-lower-competitiveness-is-rewarded-with-extra-pain.pdf"

Elliptisation wouldn't really help here, because files often differ very little in their names. Speaking of scientific papers, people ofter release similarly named papers with more or less the same authors and in the same year, so stripping even a bit of it would really lead to confusion.

Another example is picture archives. A PGN file can be easily named 

"1916-03-02_The-Great-War-1914-1918_Verdun_Operation_21-February-18-December-1916-on-the-Western Front_My-camera-roll_Me-drinking-with-comrades-0005.png"

Yes, I know that in principle we have invented hundreds of metadata formats for such a purpose, but hundreds usually mean that none of them is universally accepted. And that it is a hundred times more work to implement the support for their proper display. And also means that in practice there is a lot of garbage in the metadata. 

Whereas file names _are_ universally accepted and universally displayed, even by "ls". (ls actually wraps long lines even in the -lh format)
Comment 7 lockywolf 2020-05-23 06:42:42 CEST
People don't seem to be too unhappy with the fact that each entry in the "ls -l" output may occupy an arbitrary number of lines.
Comment 8 Git Bot editbugs 2020-05-26 23:42:12 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/237.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15205

Reported by:
lockywolf
Reported on: 2019-03-17
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
6 users

Version

Attachments

Detailed view multiline file names. (96.38 KB, image/png)
2019-03-18 02:08 CET , lockywolf
no flags
screenshot (7.78 KB, image/png)
2020-05-23 02:44 CEST , Andre Miranda
no flags

Additional information