Bug 460187

Summary: Expose new "General / Behavior / View" setting
Product: [Applications] dolphin Reporter: Mark Capella <markcapella>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: felixernst, kfm-devel, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: modified Dolphin serttings panel

Description Mark Capella 2022-10-10 03:48:38 UTC
Created attachment 152679 [details]
modified Dolphin serttings panel

Currently we are allowed 1) Global user folder views, or 2) Customized folder views with .directory file stored in that folder, and visible to user.

This change allows the user to 3) Customize folder views and store .directory files in their central:
       <USER>/.local/share/dolphin/view_properties/

Example functional patch https://pastebin.com/ibPQBhsR
Comment 1 Felix Ernst 2022-10-12 14:43:36 UTC
I totally agree that saving all folder view properties in a local folder would be preferable. AFAIK we actually have a consensus among Dolphin contributors that we would want this as a default behaviour if it were to be implemented correctly. Unfortunately implementing this correctly is somewhat difficult. You see, if we don't save the .directory files within the folders but at a local location, renaming or moving of a folder would make us lose the view properties for this folder. You might be interested in this discussion: https://invent.kde.org/system/dolphin/-/merge_requests/288#note_368581

If anyone is able to implement this correctly, their contributions would be very very welcome. It would also allow us to to enable specially fitted view modes for special views like recent files and search or the trash folder by default.
Comment 2 Mark Capella 2022-10-12 15:12:20 UTC
Thanks for the feedback, I'll check : https://invent.kde.org/system/dolphin/-/merge_requests/288#note_368581

I'd like to suggest that this become a user decision. The .directory file intrudes on user space for what is essentially OS control data.

AS a user, moving / renaming (or deleting) folders makes them "new" to me. Redoing view settings by the user at that point is acceptable (I'd suggest) for the low number of convenience edge cases.

An option / settings pref let's the user decide.
Comment 3 Mark Capella 2022-10-12 15:14:28 UTC
(chopped off)

A user pref here lets the user decide and ant be expanded along with specially fitted view modes.
Comment 4 Mark Capella 2024-06-13 17:51:36 UTC
Better solution from KDE otw ...... \o/

*** This bug has been marked as a duplicate of bug 322922 ***