Bug 333219 - An option to group hidden files in the end
Summary: An option to group hidden files in the end
Status: RESOLVED INTENTIONAL
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 4.12.97
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 03:20 UTC by Serhiy Zahoriya
Modified: 2023-01-08 19:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
HiddenFilesLast-Hardcoded.diff (905 bytes, patch)
2017-08-22 18:34 UTC, Chris Holland
Details
HiddenFilesLast-Optional.diff (15.96 KB, patch)
2017-08-22 18:35 UTC, Chris Holland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serhiy Zahoriya 2014-04-09 03:20:29 UTC
My favorite sort order is by descending date. And I have hidden files always visible. In that mode on home directory hidden files get in a way of comfortable work with other folders because of being updated frequently.

I think that optionally grouping hidden files in the end of all the others will be easy to implement, understand and work with.

Reproducible: Always
Comment 1 Frank Reininghaus 2014-04-09 12:58:42 UTC
Thanks for the suggestion. See also bug 297435 (which is about showing hidden files separately from the others without option).

(In reply to comment #0)
> My favorite sort order is by descending date. And I have hidden files always
> visible. In that mode on home directory hidden files get in a way of
> comfortable work with other folders because of being updated frequently.
> 
> I think that optionally grouping hidden files in the end of all the others
> will be easy to implement, understand and work with.

To be honest, I do not expect that more than 0.1% of our user base would use such an option. For everyone else, the option would just clutter the "Sort by" menu and possibly confuse people. So I do not agree with the "easy to understand and work with" statement.

Even if it would be easy to implement as you say, every option makes the code more complex, and adds additional code paths. Sorting is already a rather non-trivial thing, and unfortunately, the number of code paths that can be taken grows exponentially with the number of options. This makes an exhaustive testing of the code impossible, and it will most likely introduce new bugs, which will annoy people. We do not have the resources to handle this kind of maintenance burden for a feature that would only be useful for a very small minority.

Therefore, unless there is evidence that the suggested feature is of great value to a considerable part of our user base, this is WONTFIX, sorry about that.

Maybe you disagree, but unfortunately, bugs.kde.org is not suitable for discussions about the usefulness of a particular feature. Feel free to start a discussion with other users at KDE Brainstorm,

http://forum.kde.org/viewforum.php?f=83

or get in touch with the usability team to get their feedback concerning this option.
Comment 2 Serhiy Zahoriya 2014-04-09 19:40:39 UTC
I can't use forum per bug 332661 but I was trying to as you can see.
Comment 3 Chris Holland 2017-08-22 18:34:10 UTC
Created attachment 107449 [details]
HiddenFilesLast-Hardcoded.diff
Comment 4 Chris Holland 2017-08-22 18:35:35 UTC
Created attachment 107450 [details]
HiddenFilesLast-Optional.diff
Comment 5 Chris Holland 2017-08-22 18:36:24 UTC
I wrote 2 patches to implement this for myself since this is a wontfix.

The first patch will make it a hardcoded feature for all folders.

If you apply the second on top of the first, it will add an option in "View > Adjust View Properties" to make it optional per folder.
Comment 6 Mathieu 2017-10-02 07:29:00 UTC
For anyone interested in this, I've created a KDE Brainstorm entry here:

https://forum.kde.org/viewtopic.php?f=83&t=141979

Chris, I would love to try out your patches, but have no idea what to do with these .diff files. Any help would be much appreciated.
Comment 7 Chris Holland 2020-08-27 00:19:44 UTC
Recent Discussion on Reddit:
https://www.reddit.com/r/kde/comments/ih4ro2/is_it_possible_to_sort_files_in_dolphin_so_that/

I did attempt to merge my patches but it since it could affect performance and is only for a few users it wasn't merged.
https://phabricator.kde.org/D7498

The most recent version of my patch. I rebase my "zren" branch on dolphin master periodically so it could be out of date to anyone reading in the future.
https://github.com/Zren/dolphin/commit/565e4be6b3aa5348a5db0a8d62702d9469163d22

Anyone wishing to try my patches, try my dolphin fork (you'll have to recompile every once and a while). Instructions are in the ReadMe.
https://github.com/Zren/dolphin
Comment 8 Lukas 2023-01-08 19:34:11 UTC
Finally and luckily there is now an option in Dolphin in the sort by menu which is called "Hidden Files Last" and that is just doing what is wanted here :)