hledger: update formatting

This commit is contained in:
Rico Sta. Cruz 2015-12-10 02:23:16 +08:00
parent 8497446d98
commit 2b02a6ac75
1 changed files with 16 additions and 10 deletions

View File

@ -9,7 +9,7 @@ category: Ledger
hledger {bal|reg} {interval} {period} {query}
```
### Query
## Query
Used on all commands (`bal`, `reg`, etc).
```
@ -20,21 +20,33 @@ inacct:'A:B' # transactions related to account
acctonly:A # no subaccounts
inacctonly:A # same, but no subaccounts
```
### Amounts
```
amt:2000 # amount (in absolute value)
amt:<200 # amount comparison (in absolute value)
amt:<+200 # amount comparison
# also: <=, >, >=
```
### Other queries
```
desc:REGEX
code:REGEX
cur:'\$'
depth:N # --depth 2
tag:REGEX
cur:'\$'
```
```
depth:N # --depth 2
not:... # eg, not:status:!
```
### Filter by status/type
```
real:1 # -R, --real, no virtuals
status:! # --pending
@ -103,12 +115,6 @@ Also: (only in `bal`)
```
### Format
```
--format "%20(account) %12(total)
```
## Accounts
```