-
Notifications
You must be signed in to change notification settings - Fork 251
FEATURE: can always_show by pattern #1255
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
Comments
That seems perfectly reasonable. If you or anyone else wants to put up a PR for an |
I made a PR for this feature request since i needed it myself |
Does the PR that was made actually work? I tried |
@dpetka2001 just tried adding Screenshot showing my default view with EDIT: |
Yes, I had |
Did you check the docs?
Is your feature request related to a problem? Please describe.
I want to be able to always show environment files, since I often want to edit these, but they're also commonly listed in a
.gitignore
, so they are often hidden by Neotree. Environment files generally follow a simple pattern:.env*
. But right now, I can only list possible literal environment file names one by one.Describe the solution you'd like.
The
always_show
property should accept glob patterns, the same as thehide_by
property.To me, it looks like this means there should be a function call something like
utils.is_filtered_by_pattern(f.always_show, path, name)
when file items get created. Compare how the hide_by property is handled.Describe alternatives you've considered.
I could just list environment file names. But that's going to get annoying quickly. Realistically, I'll never bother.
Additional Context
No response
The text was updated successfully, but these errors were encountered: