Tasks plugin: How to NOT include a folder in a query

```tasks
not done
sort by due
group by filename
path not includes Sophia  #This does not work

It’s the last line of this query that I need help with. I need to exclude Sophia from the query but cannot figure you how to do that. I search the documentation but could not find an example of how to do this. Also, I tried placing the word ‘not’ in different places on that line with negative results.

Did you find the documentation at Filters - Tasks User Guide - Obsidian Publish ?

There are two ways you can filter by path:

path includes <something>

and

path does not include <something>

I think you want the second one, but used a slightly different syntax than what the Tasks plugin expects.

1 Like

That works think you.

I did see the documentation. But I did not see where it mentioned this. Thank you.

Perfect, exactly what I needed thank you very much @vloris

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.