nvim-tree / nvim-tree/nvim-tree.lua

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

Open
#2,367 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request PR please QOL
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

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: `{}`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing nvim-tree.filters.git_ignored behavior and the nvim-tree-api.tree.toggle_custom_file_ignored_filter() entry point. Compare the requested custom ignore filenames and regex patterns with the current filter configuration, then verify that the toggle and default G mapping behave as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.