(((meta ((content . "Query: Action List") (name . "title"))) (meta ((content . "manual") (name . "role"))) (meta ((content . "#manual #search #zettelstore") (name . "tags"))) (meta ((content . "zmk") (name . "syntax"))) (meta ((content . "00001007700000") (name . "back"))) (meta ((content . "00001007700000") (name . "backward"))) (meta ((content . "1") (name . "box-number"))) (meta ((content . "(c) 2020-present by Detlef Stern ") (name . "copyright"))) (meta ((content . "20230707205246") (name . "created"))) (meta ((content . "00001006034000 00001006035500 00001007701000 00001007710000 00001007720000") (name . "forward"))) (meta ((content . "en") (name . "lang"))) (meta ((content . "EUPL-1.2-or-later") (name . "license"))) (meta ((content . "20260226180655") (name . "modified"))) (meta ((content . "20260226180655") (name . "published"))) (meta ((content . "public") (name . "visibility")))) (p "With a " (a ((href . "00001007710000")) "list of zettel identifiers") ", a " (a ((href . "00001007720000")) "query directives") ", or a " (a ((href . "00001007701000")) "search expression") ", a list of zettel is selected." " " (em "Actions") " allows modifying this list to a certain degree.") (p "Which actions are allowed depends on the context." " " "However, actions are further separated into " (em "parameter action") " and " (em "aggregate actions") "." " " "A parameter action just sets a parameter for an aggregate action." " " "An aggregate action transforms the list of selected zettel into a different, aggregate form." " " "Only the first aggregate form is executed, following aggregate actions are ignored.") (p "In most contexts, valid actions include the name of metadata keys, at least of type " (a ((href . "00001006035500")) "Word") " or " (a ((href . "00001006034000")) "TagSet") ".") (p "To allow some kind of backward compatibility, an action written in uppercase letters that leads to an empty result list, will be ignored." " " "In this case the list of selected zettel is returned.") (p "An empty action sequence is treated as if no vertical bar character (" (@L (@H "“") (kbd "|") (@H "”")) ", U+007C) was specified.") (h2 ((id . "aggregate-actions")) "Aggregate actions") (dl (dt (kbd "KEYS")) (dd (p "Returns a list of all metadata keys of the given list of zettel.")) (dd (p (a ((href . "?q=%7C+KEYS")) (kbd "| KEYS")) " returns the list of all metadata keys managed by this Zettelstore.")) (dt (kbd "REDIRECT")) (dd (p "Redirects to the first zettel of the given list of zettel identifiers.")) (dd (p (a ((href . "?q=PICK+1+%7C+REDIRECT")) (kbd "PICK 1 | REDIRECT")) " will show a random zettel.")) (dt (kbd "REINDEX")) (dd (p "Updates the internal search index for the selected zettel identifier. It allows to specify a second aggregate action.")) (dd (p (kbd "20260226163200 IDENT | REINDEX") " updates the internal search index for a zettel with the identifier " (kbd "20260226163200") ".")) (dt (em "Word")) (dd (p "If " (em "Word") " is a metadata key of type " (a ((href . "00001006035500")) "Word") " or " (a ((href . "00001006034000")) "TagSet") ", return an aggregate of the given metadata key.")) (dd (p (a ((href . "?q=%7C+role")) (kbd "| role")) " returns a list of all used role values.")) (dd (p (a ((href . "?q=%7C+tags")) (kbd "| tags")) " returns a list of all tags specified in this zettelstore."))) (h2 ((id . "parameter-actions")) "Parameter actions") (dl (dt (kbd "MAXn")) (dd (p "Returns only those values with at most " (em "n") " aggregated values. " (em "n") " must be a positive integer.")) (dd (p (a ((href . "?q=%7C+MAX13+tags")) (kbd "| MAX13 tags")) " returns only those tags that are used at most in 13 zettel.")) (dt (kbd "MINn")) (dd (p "Returns only those values with at least " (em "n") " aggregated values. " (em "n") " must be a positive integer.")) (dd (p (a ((href . "?q=%7C+MIN3+tags")) (kbd "| MIN3 tags")) " returns only those tags that are used at least in 3 zettel.")) (dt (kbd "N")) (dd (p "Returns a numbered list of zettel in the Web User Interface, instead of an unnumbered list." " " "Ignored when specified for an API call.")) (dd (p (a ((href . "?q=%7C+N")) (kbd "| N")) " returns a numbered list of all zettel in the Web User Interface."))))