Files icon indicating copy to clipboard operation
Files copied to clipboard

Custom filters for the "hide dot files" option

Open KosmosisDire opened this issue 3 years ago • 7 comments

What's the Problem?

Hiding dot "." files has been addressed, however there are other cases where a similar problem still exists. My specific problem is that word files create a temporary "~$filename.docx" file. These are usually hidden on windows, but because it's mounted from Linux (over the network) nothing is hidden. I am also sure there are other instances where this feature would be very useful (like hiding the "lost+found" folder on a Linux drive for example).

Solution/Idea

Add more advanced options under the "hide dot files" option to allow custom wildcards or filters. I know there was talk about this under this issue but I think it needs a separate issue for proper discussion. That issue does have some great thoughts and mockups!

The "hide dot files" option could drop down to a list of different filters when the advanced option is picked. The user could then add or remove filters from the list, or simply edit the string and how it should be filtered.

Alternatives

Keep it sweet and simple with just the dot option.

Priorities

Capability Priority
This proposal will allow users to hide files that begin with a specific string Must
This proposal will allow users to hide files that end with a specific string Must
This proposal will allow users to easily add and remove filters from a list Must
This proposal will allow users to hide files that contain a specific string Could
This proposal will allow users to specify regex to hide files Could

Files Version

N/A

Windows Version

N/A

Comments

Here is an example of some pesky files that should be hidden but aren't: Temporary files that should be hidden

KosmosisDire avatar Feb 19 '22 17:02 KosmosisDire

Here is a quick mockup: Hidden Files Mockup 3

you'd probably include the dot files filter there by default, but I decided to just show a custom filter.

KosmosisDire avatar Feb 19 '22 18:02 KosmosisDire

Instead of custom filters, since i dont think there many files to hide. Adding ~$ to the list should be enough.

Josh65-2201 avatar Feb 23 '22 04:02 Josh65-2201

@Josh-65 Yeah, that's true, although it would be just "~". The second file in my image doesn't have a "$".

Someone in the linked issue also said they worked with files that were "__file" and "_file" that should be hidden:

I work a lot with files which start with _ or __ these files clutter some folders a bit, so for me it would certainly be useful. With Regex I could even hide files with specific endings. The usecases are endless.

So it could filter these symbols: ~ _ .

However, they would have to be togglable individually at the very least. As for hiding things like the lost and found folder, or normally-hidden system files, that wouldn't be possible. It would fix most of the most common use cases though

KosmosisDire avatar Feb 23 '22 05:02 KosmosisDire

I have the same request but for the desktop.ini files that are created in folders with custom icons. They drive me crazy.

Aziks0 avatar Jul 08 '22 12:07 Aziks0

Asking @yaichenbaum for approval.

Josh65-2201 avatar Jul 15 '22 16:07 Josh65-2201

Wouldn't .docx hide all Word documents?

yaira2 avatar Jul 18 '22 16:07 yaira2

@yaichenbaum If you are referring to the mockup I did, that was purely an example, I don't think you'd want to hide .docx. But there are other more useful endings that could be put there. Like ends with .ini, or starts with ~ (which would hide the .docx files I was talking about), etc...

KosmosisDire avatar Jul 18 '22 16:07 KosmosisDire