files-community / files-community/Files

Feature: Custom filters for hidden different types of files

Open
#8,423 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
45.4k
Forks
2.9k
Avg merge
19h 1m
Merged PRs (30d)
60

Description

### 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](https://github.com/files-community/Files/issues/2587) 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](https://user-images.githubusercontent.com/39423700/154810161-9610eea6-8597-4686-a969-55e266c38acd.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.