Icon view æsthetics: can we shorten/ellipsize very long filename labels?
Is it possible to make the name_renderer of ThunarIconView not show more than a few lines of text if the file names are very long? I have a few folders like that on my system, and it always looks very inconsistent. Comparing Thunar and Nautilus:
| Thunar | Nautilus |
|---|---|
![]() |
![]() |
In Thunar, the long labels create big variations in row height. In Nautilus, the label height is capped at 3 lines when the items are not selected, and take their natural height without affecting the icon view layout when they're selected (which can cause problems with selecting the item under them). I'm definitely not proposing that Thunar should do exactly what Nautilus does, because honestly drawing the label over the item below is kinda broken and looks weird. However, could ThunarIconView improve its layout a bit by ellipsizing the labels appropriately, like ThunarCompactView does with its misc-compact-view-max-chars preference?
Test case: very-long-filenames.7z
I've tried messing around with a couple of things
- the
"ellipsize"property of theGtkCellRendererText. This is way too aggressive, and causes the icon view to display only one row of label text per item, almost unreadably even for quite short labels -
gtk_cell_renderer_text_set_fixed_height_from_font(). This as far as I can tell just doesn't work.

