Expand description
The text forms: on patterns, conditions, lists, words and quoting.
Functions§
- check_
pattern - Check an
onpattern against the application’s event kinds.hintis appended to the “matches no action kind” message (for example where the catalog is listed). - condition_
text - A condition in the form
parse_conditionreads. - matches_
kind - Does an
onpattern (*,kind,prefix.*) match an event kind? - parse_
condition - Parse
FIELD OP VALUE, e.g.inserted > 0,format=pdf,title ~ "btc halving". - parse_
condition_ with parse_conditionwhere fields starting with one ofcall_prefixes(likesvc:) are call-style:PREFIX NAME/TOOL(args).path, whose arguments may hold any character but).- parse_
on import,journal.*and repeated values both work.- quote
- A value quoted only when it has to be.
- split_
list - Split
a; b; "c;d"on semicolons outside quotes (lists on one line). - tokenize
- Words of a then-action: each word, and its key when written
key=value(the key unquoted, before the first=). Quotes group words and are removed.