Optional ellipsization is non-optional: long file names no longer fully visible in Compact View since 4.17.9
I only recently noticed that a change introduced with Thunar 4.17.9, i.e. the one supposed to fix Issue #595 (commit e99bd9bd), does more harm than good IMHO.
Starting with Thunar 4.17.9, in Compact View, file names longer than 50 characters are truncated to 48 (sic!) characters, including the added "... " and the eventual extension.
My understanding is that in thunar-compact-view.c
, "misc-compact-view-max-chars
" is used, which is retrieved from thunar-preferences.c
, but as no one, nowhere, sets the value for "MiscCompactViewMaxChars
", the default 50 is used.
I suppose there was an intention to add a way to enable/disable this setting in the preferences dialog, but it was lost in the process. For reference, Caja and Nemo have the toggle "All columns have the same width"; now, this would only be the very minimum option to be provided, as this only enables or disables this truncation-cum-ellipsization, but doesn't allow to set the length that triggers this process. A more advanced approach can be found in Dolphin, where for the ellipsization there are 4 options under "Maximum width": Unlimited, Large, Medium, Small. Hard-coded and obscure (how long is "Large"?), but still more than what's available in Caja and Nemo, and definitely more than the forced truncation-cum-ellipsization that we have in Thunar!
I reckon that a really proper handling of the matter would involve a more complex approach that fixes the icon view too (Issue #117), but for now the thing is that a feature labeled "optional" is mandatory, with no way to disable it.
I'm flabbergasted that between 4.17.9 and 4.18.1 (with 4.17.10, 4.17.11, 4.17.12, 4.18.0), nobody seems to have noticed this bug! (My excuse is that I only used Thunar 4.17.7 for a month or so, then switched back to the stable 4.16.x, until Xfce 4.18 showed up in Manjaro, and I happened to have a file with a long name, and then... kaboom.)