silverbulletmd / silverbullet

The hackable notebook
https://silverbullet.md
MIT License
2.03k stars 140 forks source link

Query Support for Absence of Attributes in Tasks and Notes #814

Closed simone-viozzi closed 3 months ago

simone-viozzi commented 3 months ago

Implement the ability to query tasks and notes in SilverBullet based on the absence of certain attributes, such as due or priority.

This functionality would allow users to identify items needing additional information or categorization more efficiently.

Use Cases

Proposed Solution

Extend the SilverBullet query language to include syntax or operators that allow querying based on the absence of specified attributes. This could be through a straightforward syntax like not attribute "due" or through a more flexible query modifier that specifies missing attributes.

simone-viozzi commented 3 months ago

I found a way:

task select due, priority, name where ((due = null) or (priority = null)) and done = false render [[Library/Core/Query/Task]]
zefhemel commented 3 months ago

Simply eg not due will also work.