Repository navigation
mdroots 0.2.8: AND and parentheses in tag expressions
Tag expressions in mdroots notes -t now take AND and parentheses.
mdroots notes -t "career AND NOT projects"
mdroots notes -t "(xt26 OR career), NOT AI-AUTHORED"
mdroots notes -t "NOT (draft, wip)"ANDworks like the comma.ORand|bind tighter, andNOTand-tightest, as in zk.- Parentheses group sub-expressions, nested as deep as you like.
a OR (NOT b)is allowed; a barea OR NOT bis still refused, as zk refuses it. - Fixed: in 0.2.7,
ANDand parentheses were read as part of tag names, so these queries silently matched nothing and exited 0. - Syntax errors (an unclosed
(, a stray), a danglingAND) are now usage errors with exit 2, and name their column:mdroots: -t: column 6: expected ). - Whitespace: keywords may be separated by tabs as well as spaces.
- Names: lowercase
and/or/not, and names likeANDROIDorNOTES, stay tag names.
Install: cargo install mdroots-cli, or download a binary below (macOS on Apple silicon, Linux x86_64).