-
-
Notifications
You must be signed in to change notification settings - Fork 625
#618 filters.custom can specify regex #1112
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
Conversation
lua/nvim-tree/explorer/filters.lua
Outdated
return true | ||
end | ||
pat = "^" .. pat .. "$" | ||
if relpath:match(pat) or basename:match(pat) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use vim.regex if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it would be better indeed, lua regexes are not very common and harder to use than usual regexes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sensible. Will change on weekend and update the doc.
also this does not close #618 , the feature request asks for the live-filter feature which i'm currently implementing :) |
This causes unexpected behaviour when trying to filter a specific file, eg. If there is an appropriate page in the wiki for snippets or examples I'd be happy to edit that as well |
I very briefly documented the option in the help however it could be clearer. A PR to update that would be great! |
closes #618