hledger: update formatting
This commit is contained in:
parent
8497446d98
commit
2b02a6ac75
26
hledger.md
26
hledger.md
|
@ -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
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue