Bug 297435 - Hidden and non-hidden files and folders should always be shown separately in the view
Summary: Hidden and non-hidden files and folders should always be shown separately in ...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 2.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2012-04-03 22:54 UTC by
Modified: 2020-05-16 09:56 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 2012-04-03 22:54:18 UTC
When i click to sort by date i can see that hidden directories are showed mixed with regular ones, when they should be listed first since they are hidden.

Should hidden directories be first listed even when sorting by date?

i.e.: first sort by date hidden directories, then sort by date regular directories, then sort by date hidden files and by last sort by date regular files.
Comment 1 2012-06-20 16:35:55 UTC
This bug continues being valid and its quite annoying when sort files/folders by date in reverse order that hidden files appear mixed with regular ones, and the same happens with folders.

For who doesnt use detailed view this bug is irrelevant.
Comment 2 Peter Penz 2012-06-20 19:07:44 UTC
> For who doesnt use detailed view this bug is irrelevant.

Why? The bug is also valid for the other view-modes.
Comment 3 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:20:05 UTC
Resetting assignee to default as per bug #305719
Comment 4 2012-12-10 22:48:27 UTC
This bug is not fixed.
Comment 5 Frank Reininghaus 2012-12-11 06:10:37 UTC
(In reply to comment #4)
> This bug is not fixed.

Did anyone claim it is?
Comment 6 Emmanuel Pescosta 2012-12-14 14:44:59 UTC
Is this behavior really a bug? I my mind the ordering of files/folders is correct in this way.

> Should hidden directories be first listed even when sorting by date?
Yes when you have enabled "Folders First" -> All folders (normal and hidden) are listed before files (normal and hidden)
But the folders are sorted by date (normal and hidden folders are mixed) and the files are also sorted by date (normal files and hidden files are also mixed) for me.

@Frank: What do you think?
Comment 7 Frank Reininghaus 2012-12-17 12:23:55 UTC
@Emmanuel: Dolphin 1.x actually did show hidden files and folders first, no matter what the sort role was. But thinking about it again, I don't really see a good reason for that and tend to think that the current behaviour is OK.

@Zé: could you describe a use case in which the current behaviour is a problem for you? Thanks.
Comment 8 Simple 2012-12-20 18:22:15 UTC
This was the kind of problem never happened before dolphin 2, and it always sorted hidden folders first no matter if was sorted by date or by name.

Currently only when sorting by name and things are working as expected, and how dont understand how one can say thats a normal behavior to have hidden folders mixed with regular folders when you sort them by date.

It should first sort the hidden folders sorted in by date, then also sort by date the regular ones, then have the hidden files and for last the regular files.

When you revert the name order it continues to show hidden folders separately and not mixed with the regulars ones, and the same also happens with the files, so why shouldnt be the same when sorting them by date?
Comment 9 2012-12-20 18:42:37 UTC
I think tried to explain why this is a bug but didnt managed to explain that well, bottom line is that when sorts by date it mixes *hidden* folders/files with *regular* folders/files.

DATE sorting and NAME sorting are not following the same logic, and yes, this is a bug that only appeared in dolphin version 2.x, and konqueror also used to sort them correctly (by name and date).
Comment 10 Frank Reininghaus 2012-12-21 09:28:14 UTC
Thanks for your comments, but I have actually asked for a use case in which the current sorting behaviour is a problem. What you claim in comment 8 and comment 9 is:

1. Sorting by 'Name' and 'Date' is inconsistent. This is not true. Hidden files have a name that starts with a dot, so it is quite natural that they all appear together, even if there is no special 'hidden files treatment' in the sorting logic.

2. The behaviour has changed in Dolphin 2.0. This is true, but behaviour changes are not necessarily bugs. I still don't see a situation in which the new behaviour could be a problem.

One can still demand that the old behaviour should be restored, of course, but this looks more like a wish than like a bug to me. But to be honest, from my point of view the old behaviour was the inconsistent one. If I tell the view to sort the files by Date, Size, whatever, why should the view decide to show hidden and non-hidden files separately? I haven't seen a logical reason for that yet.
Comment 11 2012-12-21 14:48:46 UTC
If you say that sorting DATE is correct, that put NAME sorting also doing the same, that way you will have DATE and NAME sort  following the same logic, whish is to have hidden files/folders mixed with regular files/folders.

That way you will be consistent, since currently you have different behaviors for NAME and DATE sorting.
Comment 12 2012-12-21 14:55:08 UTC
And in my view that is a bug and not wish, since until version 2.x dolphin was sorting NAME and DATE following the same logic, which was to first sort by NAME or DATE the hidden folders, then sort by DATE or NAME the regular folders, then sort by NAME or DATE the hidden files and for last the regular files.

If you run nautilus or other file manager (also Windows Explorer), they all follow the same logic in sorting items (to not mix hiden with regular ones). But now you claim that dolphin sorting by date and have them all mixed its a normal thing...
Comment 13 Frank Reininghaus 2012-12-21 15:10:00 UTC
(In reply to comment #11)
> If you say that sorting DATE is correct, that put NAME sorting also doing
> the same, that way you will have DATE and NAME sort  following the same
> logic, whish is to have hidden files/folders mixed with regular
> files/folders.

No. I already explained what happens when sorting by 'Name' in comment 10:

> Hidden
> files have a name that starts with a dot, so it is quite natural that they
> all appear together, even if there is no special 'hidden files treatment' in
> the sorting logic.

(In reply to comment #12)
> If you run nautilus or other file manager (also Windows Explorer), they all
> follow the same logic in sorting items (to not mix hiden with regular ones).

Which version of Nautilus are you using? I just tried Nautilus 3.4.1, and it does mix hidden files and folders with the others.
Comment 14 Serhiy Zahoriya 2014-04-09 19:44:31 UTC
A bug with optional separation: bug 333219
Comment 15 Nate Graham 2017-09-04 04:10:26 UTC
If you enable Show in Groups, hidden files and folders show up in their own separate groups now (or in a single group if you don't have "Folders first" checked). Then you can sort by date and you will basically have exactly what you want.