-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide specified files or directories #694
Comments
Also is there already a function for checking url for a pattern? |
I think this is a bit too complicated, it's a performance challenge If there are 10,000 files in the directory and there are 5 rules like this, it will need to match 50,000 times. My idea is that it should just be a simple regular expression, not a set of rules. |
Just to be clear, should regex be checked upon filename or full path? And what config type should I use? |
Maybe we can have: [manager]
visibility_rules = [
{ dir = "~/", hide = "go|\.git" },
{ dir = "*/", hide = "\.git" } # fallback
] Different hiding patterns (regular expressions) can be set for different directories, and the first matching rule will be applied. Not quite sure, I need to think about it some more. BTW, are there any other file managers that support configuring this? Maybe we can refer to them. |
Total commander does support this, it's called Ignore list |
@jmlucjav Sorry could you be more specific? How does it support it - like, what does the configuration file look like? I haven't used it. |
the easiest would be to paste the help contents...
|
I was just looking for this feature I missed from ranger. There it is implemented with the following defaults in the
|
Anyone want to give #694 (comment) a go? |
lf file manager also has this feature implemented. It's just one line in the config file, e.g.:
It would be awesome to have this feature in yazi, especially on macOS, since most directories are polluted by files like .DS_Store. |
Hi, there. I'm interested in solving this issue but i'm new to this project's code base. |
What are your thoughts on adding the option
just a brainstorm idea :) |
I haven't thought about |
Tracked by #51 |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
Is your feature request related to a problem? Please describe
It's nice to have control over file/folder visibility, e.g. folders like
Desktop
,go
andsteam
in my home directory are an eyesore for me, I would like to hide them, and some people may want to treat their.config
as visible folder****Will you be willing to contribute this feature?
Describe the solution you'd like
There should be an option in
yazi.toml
where the user can add rules for how to treat certain files and folders. It probably should resides under the[manager]
category alongside withshow_hidden
.Which is a more intuitive way to represent this option?
Describe alternatives you've considered
No response
Additional context
Requested by @5ouma, #51 (comment)
The text was updated successfully, but these errors were encountered: