GNOME Bugzilla – Bug 300790
File names do not get wrapped at clever positions
Last modified: 2006-02-27 12:56:04 UTC
File names which so long that they have to be wrapped are not wrapped at very sensible positions. They are wrapped at spaces, which is fine. But apart from that, linebreaks near underscores (and punctuation characters in general) would be nice. Consider file names like "application_helper.rb". It is written like this: application_helper.r b This is not sensible. Why not like this: application_helper. rb or: application_ helper.rb Other information:
Thanks for your bug report! The wrapping code indeed could need some love wrt very long filenames.
*** Bug 310638 has been marked as a duplicate of this bug. ***
This is very true. UNIX traditionally doesn't even use spaces, but rather underscores. This improvement to filename wrapping would add some nice polish.
I've filed bug 323711 against Pango, since the whole wrapping seems to take place inside Pango.
Bug 323711 yielded some interesting discussions. I've written code that breaks after '_' or '.' (if no digit follows, to not break versions), and CamelCase. The latter still might require some discussions, since it is impossible to distinguish FooFooBar from FooFoo Bar when breaking between the two words.
Further discussions should take place on the mailing list, where a patch was submitted: http://mail.gnome.org/archives/nautilus-list/2005-December/msg00039.html
commited to head.