Customizable filter composition logic #3119
Labels
feature request
PR please
nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated
QOL
Quality Of Life Improvement
When using the git_clean and no_buffer filters together, I think it would be more useful to show files that are either dirty or open in a buffer. The current behavior is to only show files that are both dirty and open in a buffer.
Can this functionality be implemented utilising API?
Not currently, the filter logic is not exposed in the public API.
Describe the solution you'd like
Exposing the various filter functions to the public api in a way that they could be composed in the custom filter would be my preferred solution. Something like this would be nice:
Describe alternatives you've considered
I've implemented the behavior I want in my config with a couple janky runtime patches to
nvim-tree
's internal filter API:Additional context
The text was updated successfully, but these errors were encountered: