blacksmithgu / obsidian-dataview Public
generated from obsidianmd/obsidian-sample-pluginNew 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
List from tag 1 exclude tag 2 #44
Comments
|
Both are possible - for the first, negation is done via the minus sign ("-"), so For the second, use "!" for negation: The negation operator being different in both cases is a little wierd. Will add support for "!" in both cases so you don't need to remember the sublety. |
|
I was also a little confused about excluding tags. The minus |
|
Related: I also just discovered that which properly filters out notes that contain |
|
That's right. In WHERE blocks, I follow JavaScript style "truthiness", so null values are considered false. Thus, negating a null/undefined value yields true. |
|
Added support for '!' in front of sources as well, so you can use it for everything. I can't use '-' in fields, since that could also mean numeric negation. |
Source: blacksmithgu#44 Couldn't find how to exclude tags until searching issues - hence proposing an addition in docs.
Source: #44 Couldn't find how to exclude tags until searching issues - hence proposing an addition in docs.

I don't think there's a way to say:
list from #dessert but not #icecream
I've tried a few ways to no avail.
Something like this would be so useful.
This is probably a separate issue, but a way to say does not contain would also be great.
list from #dessert
where !=contains(file.name, "Ice Cream")
or something like that.
The text was updated successfully, but these errors were encountered: