Skip to content

Negation patterns in foam.files.ignore #1422

Open
@n8layman

Description

Is your feature request related to a problem? Please describe.

It would be nice to be able to configure foam.files.ignore to exclude all files/folders except a specific directory (e.g., resources/notes/**). However, negation patterns (!) do not seem to work as expected. Both of the following just ignore everything in the open workspace.

    "files.exclude": {
      // Hide everything except the "notes" folder
      "**": true,
      "resources/notes/**": false // Explicitly include this folder
    }

or

"foam.files.ignore": [
  "!resources/notes/**",
  "**/*"
]

Describe the solution you'd like

Enabling exclusion or negation patterns would make it a lot easier to limit foam to a single folder.

Describe alternatives you've considered

The only viable alternative I see right now is to specify every other folder except the one we don't want excluded manually which isn't very scalable.

Screenshots or Videos

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions