Skip to content

new nvim-tree.filters to point to custom files with regexes with ignore patterns #2367

@rafaeldelboni

Description

@rafaeldelboni

A new nvim-tree.filters that would behave exactly as nvim-tree.filters.git_ignored but we could set custom file names like .ignored.

There are some cases we don't want to git ignore some files, but we want to hide from tools like this or ripgrep, ripgrep has some extra files where you can define your ignored regex patterns like .ignore or .rgignore using
Filtering options.

Something like this:

    *nvim-tree.filters.custom_file_ignored* 
    Ignore using custom files that behave like `.gitignore`, but with a different name like `.ignored`. 
    Toggle via |nvim-tree-api.tree.toggle_custom_file_ignored_filter()|, default `G`
      Type: `{string}`, Default: `{}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedQOLQuality Of Life Improvementfeature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions