Too long filenames were truncated "too late", thus overlapping the shortcut text.
Moreover, simply truncating a filename may not give the most useful information.
So this patch truncates filenames whose displayed width is too high, by removing characters in the middle of the filename (keeping the first chars, and the last 10 ones, with "..." replacing the removed ones.
This is taken from OSX finder behavior.
Description
Description
Event Timeline
Comment Actions
Hi, thanks for the patch - I didn't end up using it, it's better to do it on the UI level, so it's the same in other situations.
I reused the left clipping function that exists.. I know it's not as nice as yours, but saves adding extra code and keeps things simpler - I think it'll still be quite sufficient.
cheers!
Comment Actions
Hi Matt,
No pb!
You'll still have the code if someone complains again on this topic ;)
Patch closed.
Cheers