From ac9d9bb93b847a2f00287220b6e06194daec8cdc Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 15 Apr 2010 23:31:29 +0000 Subject: [PATCH] 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. --- MANUAL.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MANUAL.rst b/MANUAL.rst index 9edf2b550..274becb2b 100644 --- a/MANUAL.rst +++ b/MANUAL.rst @@ -482,14 +482,20 @@ of pattern: in which case the match is negated. - a description pattern, like the above but prefixed with ``desc:``. This - is matched against transactions' descriptions. Note how with multiple - prefixes, not: goes last, eg: ``desc:not:someregexp``. + is matched against transactions' descriptions. Note, when negating a + desc: pattern, not: goes last, eg: ``desc:not:someregexp``. -When you specify multiple filter patterns, hledger selects the -transactions or postings which match +When you specify multiple filter patterns, hledger generally selects the +transactions or postings which match (or negatively match) *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 """""