docs: document new print matching behaviour

Negative account patterns are now more useful with print, excluding
transactions which have any posting to a matched account.
This commit is contained in:
Simon Michael 2010-04-15 23:31:29 +00:00
parent 7dcb91a70f
commit ac9d9bb93b

View File

@ -482,14 +482,20 @@ of pattern:
in which case the match is negated. in which case the match is negated.
- a description pattern, like the above but prefixed with ``desc:``. This - a description pattern, like the above but prefixed with ``desc:``. This
is matched against transactions' descriptions. Note how with multiple is matched against transactions' descriptions. Note, when negating a
prefixes, not: goes last, eg: ``desc:not:someregexp``. desc: pattern, not: goes last, eg: ``desc:not:someregexp``.
When you specify multiple filter patterns, hledger selects the When you specify multiple filter patterns, hledger generally selects the
transactions or postings which match transactions or postings which match (or negatively match)
*any of the account patterns* AND *any of the description patterns* *any of the account patterns* AND *any of the description patterns*
The `print <#print>`_ command selects transactions which
*match any of the description patterns* AND
*have any postings matching any of the positive account patterns* AND
*have no postings matching any of the negative account patterns*
Dates Dates
""""" """""