Skip to content

mdroots 0.2.8: AND and parentheses in tag expressions

Choose a tag to compare

@github-actions github-actions released this 10 Oct 13:18
· 88 commits to main since this release

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)"
  • AND works like the comma. OR and | bind tighter, and NOT and - tightest, as in zk.
  • Parentheses group sub-expressions, nested as deep as you like. a OR (NOT b) is allowed; a bare a OR NOT b is still refused, as zk refuses it.
  • Fixed: in 0.2.7, AND and parentheses were read as part of tag names, so these queries silently matched nothing and exited 0.
  • Syntax errors (an unclosed (, a stray ), a dangling AND) 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 like ANDROID or NOTES, stay tag names.

Install: cargo install mdroots-cli, or download a binary below (macOS on Apple silicon, Linux x86_64).

Changelog