From b14f68d4d84cefd3eaa217978e3429bafdd22e8f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 6 Dec 2022 09:28:13 -1000 Subject: [PATCH] ;doc: tags: mention querying --- hledger/hledger.m4.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 611eceb40..5857c967a 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -2356,7 +2356,8 @@ So in the example above, the expenses posting effectively has all four tags (by inheriting from account and transaction), and the transaction also has all four tags (by acquiring from the expenses posting). -You can list tag names with `hledger tags [TAGNAMEREGEX]`. +You can list tag names with `hledger tags [NAMEREGEX]`, +or match by tag name with a `tag:NAMEREGEX` query. ### Tag values @@ -2376,7 +2377,8 @@ Currently this is true for all same-tag situations, ie: - Posting inheriting the same tag from its transaction or account - Transaction acquiring the same tag from one or more of its postings -You can list a tag's values with `hledger tags TAGNAME --values`. +You can list a tag's values with `hledger tags TAGNAME --values`, +or match by tag value with a `tag:NAMEREGEX=VALUEREGEX` query. ## Postings