(((meta (@ (content . "Query Expression") (name . "title"))) (meta (@ (content . "manual") (name . "role"))) (meta (@ (content . "#manual #search #zettelstore") (name . "tags"))) (meta (@ (content . "zmk") (name . "syntax"))) (meta (@ (content . "00001006020000 00001007000000 00001007031100 00001007031140 00001007040310 00001010070200 00001012051200 00001012051400 00001012931600") (name . "back"))) (meta (@ (content . "00001006020000 00001007000000 00001007031100 00001007031140 00001007040310 00001007702000 00001007790000 00001010070200 00001012051200 00001012051400 00001012931600") (name . "backward"))) (meta (@ (content . "1") (name . "box-number"))) (meta (@ (content . "(c) 2020-present by Detlef Stern ") (name . "copyright"))) (meta (@ (content . "20220805150154") (name . "created"))) (meta (@ (content . "00001006050000 00001007701000 00001007702000 00001007705000 00001007706000 00001007710000 00001007720000 00001007720300 00001007720600 00001007720900 00001007721200 00001007770000 00001007780000 00001007790000") (name . "forward"))) (meta (@ (content . "en") (name . "lang"))) (meta (@ (content . "EUPL-1.2-or-later") (name . "license"))) (meta (@ (content . "20230731161954") (name . "modified"))) (meta (@ (content . "20230731161954") (name . "published"))) (meta (@ (content . "public") (name . "visibility")))) (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 (th "Query Expression") (th "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")))))