You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
Yeah it would make sense to have a foam.files.include which would limit the files scanned by Foam.
Especially if you can have more than it would serve the great majority of cases.
The file discovery algorithm would be something like:
find files to include
by default */
if foam.files.include is defined, use that
from the previous list, exclude anything that matches a pattern from the exclude patterns
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.
or
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
The text was updated successfully, but these errors were encountered: