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:
		
							parent
							
								
									7dcb91a70f
								
							
						
					
					
						commit
						ac9d9bb93b
					
				
							
								
								
									
										14
									
								
								MANUAL.rst
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								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
 | 
			
		||||
"""""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user