Skip to content
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

Feature request: Option to exclude indexing of non-markdown files #60

Open
derrickwheals opened this issue Aug 9, 2023 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@derrickwheals
Copy link

Firstly - great plugin - thanks for building it.

It would very useful to be able to customise the recursive indexing to choose between

  1. Index all files in sub-folders (current behaviour)
  2. Index only markdown files
  3. Exclude specific file types (esp. images, as having it list all attached images for notes is not useful)

I hope you'll consider this as an enhancement!

Thanks
Derrick

@turulix turulix added the enhancement New feature or request label Aug 9, 2023
@turulix
Copy link
Owner

turulix commented Aug 9, 2023

Excluding specific files is already possible :) You can use the Excluded Folder option (I should probably rename it) But basically it can filter out all kinds of files. If you want to remove images you can simply do some regex magic like .*\.(?:png|jpg) to exclude all png and jpg files

@judisohn
Copy link

@turulix Rather than Exclude Folders, I'd like a way to Exclude files that match a Property (Frontmatter) value. For example, I have a Status Property that sets a file as "Inactive," so I don't have to move it to a separate excluded folder. Can I do this with the current functionality (with "regex magic," perhaps)?

@JEleniel
Copy link

I use the following regex to exclude all files that do not end in .md (all non-markdown files):

.*\.(?!(?:md$)).*

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

4 participants