Skip to content

Ignore pattern possible? #266

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

Closed
DianeOfTheMoon opened this issue Apr 11, 2022 · 4 comments
Closed

Ignore pattern possible? #266

DianeOfTheMoon opened this issue Apr 11, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@DianeOfTheMoon
Copy link

I was wondering if there was any config for ignoring patterns in neo-tree? I'm working in Unity and generally don't want to see *.meta and *.prefab files, but it seemed like the config was full filename only.

@cseickel
Copy link
Contributor

No, but the nesting feature may work for you if they are just compiled artifacts of other files. See:

:h neo-tree-file-nesting

@DianeOfTheMoon
Copy link
Author

Not entirely because Unity creates .meta files for things like directories, too, which the file nesting doesn't seem to handle. Can you do directory level nesting? The help didn't indicate that you could.

@cseickel
Copy link
Contributor

Can you do directory level nesting?

No, that can't really work from a UI perspective.

I will add the ability to hide with a pattern as well.

@cseickel cseickel added the enhancement New feature or request label Apr 12, 2022
@cseickel
Copy link
Contributor

I just pushed an update to the main branch that adds this feature. Can you give it a try and let me know if it works for you?

    require("neo-tree").setup({
      filesystem = {
        filtered_items = {
          visible = false, -- when true, they will just be displayed differently than normal items
          hide_dotfiles = true,
          hide_gitignored = true,
          hide_by_name = {
            ".DS_Store",
            "thumbs.db",
            --"node_modules",
          },
          hide_by_pattern = {
            "*.meta",
            "*.prefab"
          },
        },
      }
    })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants