* John Wiegley <[email protected]> [2018-08-26 21:24]:
> CP> What's the proper way to filter by tag in a value expression passed to
> CP> --limit?
> 
> Try has_tag(/travel/)

John, just to make sure I understand this currently (as this isn't
documented properly in the manual).

tag() is used to check whether the _value_ of a tag has a certain
value, i.e. tag(/foo/) =~ /bar/

whereas

has_tag() is used to check whether a tag exists.

(In reality, tag() can also be used to check if a tag exists, but
_only_ if it's a "tag: value"; this won't work for :tag:).

BTW, do we have terminology to distinguish between "tag: foo" and
":tag:"?  It seems they are both tags, even though they are different.
Tags with value vs tags without value?
-- 
Martin Michlmayr
https://www.cyrius.com/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to