From 2b02a6ac753346af39f299324da5c53e4841e219 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 10 Dec 2015 02:23:16 +0800 Subject: [PATCH] hledger: update formatting --- hledger.md | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/hledger.md b/hledger.md index 595bfbd79..dc370413f 100644 --- a/hledger.md +++ b/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 ```