Skip to content

regex support for filters.exclude  #1511

Closed
@mcpeng

Description

@mcpeng
  filters = {
    dotfiles = true,
    custom = { "^node_modules$" },
    exclude = { ".gitignore$", "^\\.env" },
  },
  git = {
    enable = true,
    ignore = true,
    show_on_dirs = true,
    timeout = 400,
  },

I wanna show files like .env / .env.prod / .env.xxxx and hide files like .pyenv.

  • exclude ".gitignore$" works correctly: hide file .gitignore_global & show file .gitignore
  • I've tried exclude:
    • ".env": will show file .zshenv/.pyenv too
    • "^\\.env": will hide file .env too

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions