Persistent file & folder search order 'by name'

Hi ! I’m using KDE Plasma 6.6 on Fedora 43.
I’d like to have the default sort order for files and folders “by name” (in Dolphin and all file dialogs).
Occasionally I temporarily change sort order to ‘modification date’ and after I always get that sort order.

I’d like to get the ‘default sort order by name’ back when I start a new Dolphin session or open a file dialog in a different app/session.
Is there any setting I can configure to get such a ‘default’ behaviour ?

In settings (View), you either set the folder view for all folders, or let each folder remember it’s setting.

So the answer (if you can fix a single folder) is no… not in GUI settings anyway.

Now, inside each folder (if you have different views) you can make that .directory file read only…

Test it maybe with your Downloads folder (AFTER you set it up) - you can hit F4 to get your terminal open…:

chmod 444 .directory

BTW, in addition to what @ben2talk said, in the new Gear 26.04.0 there is an interesting new feature in Dolphin (look at the Dolphin section and view the animated image).

Regards

1 Like

Thanks for this option!
I wanted to avoid folder specific settings as I wanted to have clearly understandable system-wide defaults but might try this if there is no better way …

I think a “revert to default view settings” button might do the trick, for when you have view-settings per-folder set.
It would be disabled if the folder already has the default settings.

Unfortunately having ‘per folder’ view settings does not create .directory files for me, but instead uses extended attributes (xattrs).

I guess I cannot write-protect the user.kde.fm.viewproperties xattr entry, right ?

Yes, that would be great! But such a button is currently not shown, correct ?

It doesn’t exist now. That was just an idea, but I think that will make it easier for many users.
We also have the “Adjust View Display Style” that can achieve the same and recursively when in view-settings per-folder mode.
We could add an entry for it in the “View Settings” toolbar menu and it could be added as a button to the toolbar.