]> cloud.milkyroute.net Git - dolphin.git/commit
Elide file names in the middle again
authorNate Graham <nate@kde.org>
Fri, 3 Jan 2025 19:45:27 +0000 (12:45 -0700)
committerFelix Ernst <felixernst@kde.org>
Tue, 7 Jan 2025 01:46:12 +0000 (01:46 +0000)
commitf42e81fb5d71ffa23948c4edea9bb3f86c84e8c7
tree5f94ec7cbda6a0b00895b1d9119c9801f5047e1a
parentcd583c410996f28ca54168156505992f146f4cad
Elide file names in the middle again

In ye olden days, filenames were elided on the right. This prevented
seeing the filename extension and any suffix style text the user
included in the filename (e.g. "myfile 1", "myfile 2" and so on).

In 97f49347482519b9ad53b7596d7462e68b7c2e14, this was changed to elide
in the middle, fixing both problems and bringing Dolphin into Jakobs'
Law style consistency with MacOS Finder and Windows Explorer, and
possibly other file managers too.

However it worsened the situation for users who name their files such
that most of the information was on the left. After some complaints, it
was changed in 99cf24c03def1c0722ba8dbd86a27b9dbc521f43 to right-elide
again, but excluding the filename extension.

Unfortunately user complaints have continued. At this point it's clear
that nothing will satisfy everyone due to diversity of file naming
styles. In such a situation, Jakobs' Law consistency with the rest of
the industry is the best solution short of making it configurable,
which has its own drawbacks.

Accordingly, return to middle-elision.

BUG: 497664
CCBUG: 404955
FIXED-IN: 25.04.0
src/kitemviews/kstandarditemlistwidget.cpp
src/kitemviews/kstandarditemlistwidget.h