((p "A query expression allows you to search for specific zettel and to perform some actions on them." " " "You may select zettel based on a list of " (a (@ (href . "00001006050000")) "zettel identifier") ", based on a query directive, based on a full-text search, based on specific metadata values, or some or all of them.") (p "A query expression consists of an optional " (em (a (@ (href . "00001007710000")) "zettel identifier list")) ", zero or more " (em (a (@ (href . "00001007720000")) "query directives")) ", an optional " (em (a (@ (href . "00001007701000")) "search expression")) ", and an optional " (em (a (@ (href . "00001007770000")) "action list")) "." " " "The latter two are separated by a vertical bar character (" (@L (@H "“") (kbd "|") (@H "”")) ", U+007C).") (p "A query expression follows a " (a (@ (href . "00001007780000")) "formal syntax") ".") (ul (li (p (a (@ (href . "00001007710000")) "List of zettel identifier"))) (li (p (a (@ (href . "00001007720000")) "Query directives")) (ul (li (a (@ (href . "00001007720300")) "Context directive")) (li (a (@ (href . "00001007720600")) "Ident directive")) (li (a (@ (href . "00001007720900")) "Items directive")) (li (a (@ (href . "00001007721200")) "Unlinked directive")))) (li (p (a (@ (href . "00001007701000")) "Search expression")) (ul (li (a (@ (href . "00001007702000")) "Search term")) (li (a (@ (href . "00001007705000")) "Search operator")) (li (a (@ (href . "00001007706000")) "Search value")))) (li (p (a (@ (href . "00001007770000")) "Action list")))) (p "Here are " (a (@ (href . "00001007790000")) "some examples") ", which can be used to manage a Zettelstore:") (table (thead (tr (td "Query Expression") (td "Meaning"))) (tbody (tr (td (a (@ (href . "?q=role%3Aconfiguration")) "role:configuration")) (td "Zettel that contains some configuration data for the Zettelstore")) (tr (td (a (@ (href . "?q=ORDER+REVERSE+created+LIMIT+40")) "ORDER REVERSE created LIMIT 40")) (td "40 recently created zettel")) (tr (td (a (@ (href . "?q=ORDER+REVERSE+published+LIMIT+40")) "ORDER REVERSE published LIMIT 40")) (td "40 recently updated zettel")) (tr (td (a (@ (href . "?q=PICK+40")) "PICK 40")) (td "40 random zettel, ordered by zettel identifier")) (tr (td (a (@ (href . "?q=dead%3F")) "dead?")) (td "Zettel with invalid / dead links")) (tr (td (a (@ (href . "?q=backward%21%3F+precursor%21%3F")) "backward!? precursor!?")) (td "Zettel that are not referenced by other zettel")) (tr (td (a (@ (href . "?q=tags%21%3F")) "tags!?")) (td "Zettel without tags")) (tr (td (a (@ (href . "?q=expire%3F+ORDER+expire")) "expire? ORDER expire")) (td "Zettel with an expire date, ordered from the nearest to the latest")) (tr (td (a (@ (href . "?q=00001007700000+CONTEXT")) "00001007700000 CONTEXT")) (td "Zettel within the context of the " (a (@ (href . "00001007700000")) "given zettel"))) (tr (td (a (@ (href . "?q=PICK+1+%7C+REDIRECT")) "PICK 1 | REDIRECT")) (td "Redirect to a random zettel")))))