obsidian-meta-bind-plugin icon indicating copy to clipboard operation
obsidian-meta-bind-plugin copied to clipboard

Exclude folder to exclude suggestions from folder

Open lemondrizzlecake opened this issue 1 year ago • 2 comments

Please fill out these Check-boxes

  • [x] I checked for existing similar feature requests
  • [x] I have read the docs and checked that the feature I am requesting is not already implemented
  • [x] My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

I have a set up that uses templates with tags pre-loaded in their frontmatter so I don't have to manually assign these.

E.g. "New book" with the '#book' tag

I have added the templates folder to the Excluded folders in meta-bind, as well as in Obsidian Core's excluded folders. However, meta bind suggester does not exclude choosing the files with these tags, when using optionQuery(#tag). So the suggester shows "New book" as a suggestion, alongside all the books I have added using this template.

Describe the Feature you'd like

Use the 'Excluded Folders' setting in Obsidian Core 'Files and Links' area. Files sitting this folder and subfolders should be ignored from the inline suggester.

Alternatives

Use the 'Excluded Folders' setting in Meta Bind plugin settings to add folders to exclude from suggestions.

Additional Context

No response

lemondrizzlecake avatar Feb 22 '25 11:02 lemondrizzlecake

I agree that if something is already set in the ignore folders they shouldn't show up, but in the interim, just in case you aren't aware, since I wasn't for a while as it isn't mentioned/listed as an example in MB's docs only in the linked to DV's about dataview sources, you can exclude things from an inline option query for example: INPUT[inlineListSuggester(optionQuery(#book and !"Templates Folder"):target] should give you the suggestions without the templates I believe. Hopefully that will be helpful for the time being even if it is more work.

Graywaren avatar Feb 23 '25 04:02 Graywaren

Ah nice - that does work as a temporary fix for the time being. Thanks!

lemondrizzlecake avatar Feb 23 '25 07:02 lemondrizzlecake