dufs icon indicating copy to clipboard operation
dufs copied to clipboard

Specify a default sort order

Open dreammu opened this issue 9 months ago • 2 comments

Specific Demand

I would like to request a modification to the default sorting method used in the application. Currently, the items are sorted in a fixed order by default.

Implement Suggestion

Command-Line Parameter: Allow users to specify the sorting method through a command-line argument by adding a --sort parameter, like --sort mtime=desc.

Configuration File Option: Allow users to specify the sorting method in the configuration file by adding a sort key, like sort: mtime=desc.

dreammu avatar Mar 17 '25 11:03 dreammu

I like this idea. Perhaps it would also be useful to save the sort order to localStorage in the browser itself. In this way if users changed the sort order in their browser, and came back to dufs at a later time, this value would be retrieved from localStorage and used instead of the defaults.

Crysknife007 avatar Mar 17 '25 20:03 Crysknife007

Adding the sorting parameter will affect all users, regardless of any personalized settings they have made. You can allow users to set and save URLs with querry stings, such as https://localhost/?order=desc&sort=name, this will sorted by name desc.

vhtmui avatar Jun 10 '25 06:06 vhtmui

We will not support this feature. Not many people are interested.

Please add the query string (e.g., ?order=desc&sort=name) manually or use custom assets.

sigoden avatar Aug 02 '25 01:08 sigoden

I want this feature, too! It's not comfortable to sort order to my preferred way each time when I open dufs. I think It's worth to implement this feature.

jiangjiangflies avatar Nov 02 '25 16:11 jiangjiangflies