Bug 264434

Summary: Dolphin doesn't remember the columns widths in details view
Product: [Applications] dolphin Reporter: Lurkningen <lurkningen>
Component: view-engine: details modeAssignee: Peter Penz <peter.penz19>
Status: RESOLVED FIXED    
Severity: wishlist CC: cyberbeat, harland.coles, kamikazow, linux, nightowl, nitro, nortexoid, piwsko, sacarde, zeta
Priority: NOR    
Version: 1.99   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.0
Sentry Crash Report:

Description Lurkningen 2011-01-27 10:58:04 UTC
Version:           unspecified (using Devel) 
OS:                Linux

When I resize a column in the details view, the setting is lost as soon as I restart dolphin.
I think it would be better if the setting would be saved for each directory separately, as already happens for the additional columns information (AdditionalInfo).

Reproducible: Always
Comment 1 Piotr Wicijowski 2011-01-27 18:19:31 UTC
I can also reproduce this behaviour.
Kubuntu 10.10, KDE 4.6 (from backport PPA repository)
To tell the truth, it's not severely annoying, but the constantly reappearing horizontal scrollbar due to autoresizing of columns makes dolphin look not very polished.
Comment 2 Jared B. 2011-01-29 06:39:34 UTC
Confirmed here as well, Gentoo w/ KDE 4.6  Not only does it restore the original, default column sizes on restart (which it's always done since KDE 4.0, which is a bug in and of itself), but now it also restores the original column sizes on EVERY directory change.

Very, very annoying.  Please fix.
Comment 3 Peter Penz 2011-12-26 15:31:44 UTC
*** Bug 289865 has been marked as a duplicate of this bug. ***
Comment 4 Peter Penz 2012-01-18 18:02:33 UTC
*** Bug 291883 has been marked as a duplicate of this bug. ***
Comment 5 Chris Nicoll 2012-02-25 14:50:12 UTC
This still seems to be the case in KDE 4.6.5 in Mandriva 2011. It's really quite an impediment to efficient work as I have to resize something every time I open Dolphin.
Comment 6 sacarde 2012-03-05 10:49:36 UTC
hi,
   some problem here in archlinux-64 with kde 4.8.0 (konqueror/dolphin)
Comment 7 Harland Coles 2012-03-14 00:39:12 UTC
I concur with the annoying reset of column resize to some default after I (the user) have changed it while in an instance/session when changing to/expanding another directory.  Not remembering between instances and restarts is not an issue for me, as to have it open with an auto default is probable a good thing(tm), but within an open instance, if I change it, stay there (damit)!
Comment 8 Peter Penz 2012-03-14 07:52:23 UTC
I'll try to fix the "reset column-size when changing a directory"  for 4.8.2 or 4.8.3, as this is clearly a regression in comparison to Dolphin 1.x Regarding remembering the column-size per directory: This is something I'll try to implement for 2.1...
Comment 9 Jared B. 2012-03-14 08:09:30 UTC
Thanks, Peter.  Question, though - do you plan on fixing it back to the functionality present in KDE 4.6/4.7, or the functionality prior to 4.6?  It sounds like you're addressing the changes introduced by Dolphin 2, but this bug report was originally opened for changes in the version of Dolphin 1 included with KDE 4.6 - that is, Dolphin automatically resizes its columns after every restart and after every directory change.  Prior to 4.6, it would respect the user's preferences and remember the manually adjusted column withs across sessions, which I think is a much (MUCH) better behavior.

Just wanted to make sure that wasn't overlooked...
Comment 10 Jared B. 2012-03-14 08:11:44 UTC
ack, nevermind.  Just reread your last comment and saw that you specifically addressed the 'remember' issue.  Somehow missed that the first time.

Sorry for the noise.
Comment 11 Daniel Bauer 2012-03-19 11:21:19 UTC
Same here, Opensuse 12.1, KDE 4.8.1, dolphin 2.0
(I have set dolphin to use same view on all folders)
Comment 12 Peter Penz 2012-03-22 14:46:43 UTC
Git commit 14d5c505f76c438f4fe8f78d575b0c29db2b2225 by Peter Penz.
Committed on 22/03/2012 at 15:39.
Pushed by ppenz into branch 'KDE/4.8'.

Details view: Expand the name-column like in Dolphin 1.x

With the new view-engine the name-column always has been expanded
to the maximum width of all available names. But this makes it
impossible to see other columns without scrolling when having long
filenames, so per default the Dolphin 1.x behavior has been applied
to the new view-engine so that the name-column-width gets decreased
to be able to show the other columns.

This patch will be released with KDE applications 4.8.2. For
Dolphin 2.1 (KDE applications 4.9) user-modified widths of the
columns will be remembered per directory also between different
sessions.

M  +1    -1    dolphin/src/kitemviews/kfileitemlistview.cpp
M  +1    -1    dolphin/src/kitemviews/kitemlistheader.cpp
M  +1    -1    dolphin/src/kitemviews/kitemlistheader_p.h
M  +14   -14   dolphin/src/kitemviews/kitemlistview.cpp

http://commits.kde.org/kde-baseapps/14d5c505f76c438f4fe8f78d575b0c29db2b2225
Comment 13 Peter Penz 2012-03-22 14:47:23 UTC
Git commit 0c7ae8b9d9381a0b7971fd91bbe870fa2db5d041 by Peter Penz.
Committed on 22/03/2012 at 15:39.
Pushed by ppenz into branch 'master'.

Details view: Expand the name-column like in Dolphin 1.x

With the new view-engine the name-column always has been expanded
to the maximum width of all available names. But this makes it
impossible to see other columns without scrolling when having long
filenames, so per default the Dolphin 1.x behavior has been applied
to the new view-engine so that the name-column-width gets decreased
to be able to show the other columns.

This patch will be released with KDE applications 4.8.2. For
Dolphin 2.1 (KDE applications 4.9) user-modified widths of the
columns will be remembered per directory also between different
sessions.

M  +1    -1    dolphin/src/kitemviews/kfileitemlistview.cpp
M  +1    -1    dolphin/src/kitemviews/kitemlistheader.cpp
M  +1    -1    dolphin/src/kitemviews/kitemlistheader_p.h
M  +14   -14   dolphin/src/kitemviews/kitemlistview.cpp

http://commits.kde.org/kde-baseapps/0c7ae8b9d9381a0b7971fd91bbe870fa2db5d041
Comment 14 Peter Penz 2012-03-23 21:32:31 UTC
Git commit 598881299542223a23db4cb00da7904c5edad6c1 by Peter Penz.
Committed on 23/03/2012 at 22:26.
Pushed by ppenz into branch 'master'.

Details view: Optionally remember user changed column-widths

If the user changed a column-width in the details-view, up to now
the width got reset when changing a directory or when restarting
Dolphin. Now the column-widths automatically get remembered for each
directory in case if the user has modified the width. The automatic
resizing is still turn on per default. The storing of the custom
column-width can easily be reset by right clicking on the header and
selecting "Automatic Column Widths" from the context-menu.

Some finetuning is still necessary (e.g. the "Adjust View Properties"
dialog currently is not aware about this setting) but this will
be fixed during the next weeks.
FIXED-IN: 4.9.0

M  +1    -0    dolphin/src/CMakeLists.txt
M  +6    -6    dolphin/src/kitemviews/kfileitemlistview.cpp
M  +1    -1    dolphin/src/kitemviews/kfileitemlistview.h
M  +9    -7    dolphin/src/kitemviews/kfileitemlistwidget.cpp
M  +1    -1    dolphin/src/kitemviews/kfileitemlistwidget.h
M  +31   -452  dolphin/src/kitemviews/kitemlistheader.cpp
A  +89   -0    dolphin/src/kitemviews/kitemlistheader.h     [License: GPL (v2+)]
C  +77   -70   dolphin/src/kitemviews/kitemlistheaderwidget.cpp [from: dolphin/src/kitemviews/kitemlistheader.cpp - 075% similarity]
R  +26   -19   dolphin/src/kitemviews/kitemlistheaderwidget_p.h [from: dolphin/src/kitemviews/kitemlistheader_p.h - 078% similarity]
M  +147  -136  dolphin/src/kitemviews/kitemlistview.cpp
M  +41   -36   dolphin/src/kitemviews/kitemlistview.h
M  +15   -11   dolphin/src/kitemviews/kitemlistwidget.cpp
M  +8    -4    dolphin/src/kitemviews/kitemlistwidget.h
M  +5    -0    dolphin/src/settings/dolphin_directoryviewpropertysettings.kcfg
M  +3    -3    dolphin/src/views/dolphinitemlistcontainer.cpp
M  +98   -15   dolphin/src/views/dolphinview.cpp
M  +1    -0    dolphin/src/views/dolphinview.h
M  +14   -0    dolphin/src/views/viewproperties.cpp
M  +3    -0    dolphin/src/views/viewproperties.h

http://commits.kde.org/kde-baseapps/598881299542223a23db4cb00da7904c5edad6c1
Comment 15 Tanja Schulte 2012-04-01 12:23:55 UTC
Thanks a lot!!
Comment 16 Michael D 2013-02-19 12:16:54 UTC
I am observing this problem with the "filepicker" dialog.: column width is not remembered once changed. Invoke the filepicker, change column width. Close filepicker. Invoke filepicker--column width forgotten.

I'm not sure whether these two problems are sufficiently related.
Comment 17 Christoph Feck 2013-03-06 00:47:19 UTC
Michael, the file dialogs use different code. What you see is bug 196508.