Bug 479912

Summary: Please add an option to decide which files are handled as "hidden" files
Product: [Applications] dolphin Reporter: Tobias Leupold <tl>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: akselmo, fanzhuyifan, kfm-devel, tl
Priority: NOR    
Version: 23.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 24.02
Sentry Crash Report:

Description Tobias Leupold 2024-01-16 19:32:06 UTC
At least since 23.08.3, Dolphin decided that files ending in "~" are "hidden" files. Like files starting with ".".

I stumbled upon this when I created a backup of a file like we always did: By copying it to it's name with a "~" appended. The backup did not show up in Dolphin. So I opened Konsole to check what's wrong to see the file is actually there – but hidden.

After all, this is of course a design decision. But for me as a Linux user of almost 20 years, I would call this at least a bit "unexpected": ls does show files ending in "~". And it hides files starting with ".". Like it always did. I personally would expect a file manager to behave the same.

So …  if you really think that "~" file should be hidden (for whatever reason …): Please at least let me choose to not do so via some config option. I think this would be trivial to add; I only didn't implement it and create a MR because I'm not sure where to put such an option.

Thanks a lot in advance for letting the user decide this ;-)
Comment 1 fanzhuyifan 2024-01-17 06:42:16 UTC
Hi, thank you for your bug report!

KDE decided to implement this since a lot of users explicitly asked for this behavior (e.g., see https://bugs.kde.org/show_bug.cgi?id=3212)
For workaround, you could take a look at https://bugs.kde.org/show_bug.cgi?id=3212#c81

Marking this as intentional since this was intentionally implemented.
Comment 2 Tobias Leupold 2024-01-17 08:45:27 UTC
Okay I see … still, there really should be an option to decide which files should be hidden and which not.

Thanks for the hint with the workaround! But still, it's a workaround. I would not mark this as "resolved", as the "at least add an option to not do so" part remains a feature request. I'm editing the title and reopening this …
Comment 3 fanzhuyifan 2024-01-23 05:58:34 UTC
Seems implemented in https://invent.kde.org/system/dolphin/-/merge_requests/695?
Comment 4 Tobias Leupold 2024-01-23 06:48:08 UTC
Well, not exactly how I would do it, but a step towards the right direction.

I personally would not assume that those "hidden" files share one MIME type. But maybe, it's just me … for me, the only way to "hide" a file has always been letting it start with a dot. So I would have assumed that it's some wildcard Dolphin uses, not a MIME type …
Comment 5 fanzhuyifan 2024-01-23 20:42:03 UTC
Closing because I verified that files ending in tilde are not hidden if you unselect "Also hide backup files while hiding hidden files".
Comment 6 Tobias Leupold 2024-01-24 12:37:50 UTC
Fair enough ;-)