doc: update builtin manuals
This commit is contained in:
parent
22e751983b
commit
40699af34a
@ -146,8 +146,8 @@ show, and match with \-b/\-e/\-p/date:, secondary dates instead
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-C\ \-\-cleared\f[]
|
.B \f[C]\-U\ \-\-unmarked\f[]
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with \-P or \-C)
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
@ -156,8 +156,8 @@ include only pending postings/txns
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-U\ \-\-unmarked\f[]
|
.B \f[C]\-C\ \-\-cleared\f[]
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
@ -322,11 +322,13 @@ Period balances ignore transactions before the report start date, so
|
|||||||
they show the change in balance during the report period.
|
they show the change in balance during the report period.
|
||||||
They are more useful eg when viewing a time log.
|
They are more useful eg when viewing a time log.
|
||||||
.PP
|
.PP
|
||||||
\f[C]C\f[] toggles cleared mode, which shows balances for postings with
|
\f[C]U\f[] toggles filtering by unmarked status, including or excluding
|
||||||
cleared status only.
|
unmarked postings in the balances.
|
||||||
Similarly, \f[C]P\f[] toggles pending mode, which shows balances for
|
Similarly, \f[C]P\f[] toggles pending postings, and \f[C]C\f[] toggles
|
||||||
pending postings only, and \f[C]U\f[] toggles uncleared mode, which
|
cleared postings.
|
||||||
shows balances for unmarked postings only.
|
(By default, balances include all postings; if you activate one or two
|
||||||
|
status filters, only those postings are included; and if you activate
|
||||||
|
all three, the filter is removed.)
|
||||||
.PP
|
.PP
|
||||||
\f[C]R\f[] toggles real mode, in which virtual postings are ignored.
|
\f[C]R\f[] toggles real mode, in which virtual postings are ignored.
|
||||||
.PP
|
.PP
|
||||||
@ -368,11 +370,13 @@ In other words, the register always shows the transactions responsible
|
|||||||
for the period balance shown on the accounts screen.
|
for the period balance shown on the accounts screen.
|
||||||
As on the accounts screen, this can be toggled with \f[C]F\f[].
|
As on the accounts screen, this can be toggled with \f[C]F\f[].
|
||||||
.PP
|
.PP
|
||||||
\f[C]C\f[] toggles cleared mode, which shows transactions with cleared
|
\f[C]U\f[] toggles filtering by unmarked status, showing or hiding
|
||||||
status only.
|
|
||||||
Similarly, \f[C]P\f[] toggles pending mode, which shows only pending
|
|
||||||
transactions, and \f[C]U\f[] toggles uncleared mode, which shows only
|
|
||||||
unmarked transactions.
|
unmarked transactions.
|
||||||
|
Similarly, \f[C]P\f[] toggles pending transactions, and \f[C]C\f[]
|
||||||
|
toggles cleared transactions.
|
||||||
|
(By default, transactions with all statuses are shown; if you activate
|
||||||
|
one or two status filters, only those transactions are shown; and if you
|
||||||
|
activate all three, the filter is removed.)q
|
||||||
.PP
|
.PP
|
||||||
\f[C]R\f[] toggles real mode, in which virtual postings are ignored.
|
\f[C]R\f[] toggles real mode, in which virtual postings are ignored.
|
||||||
.PP
|
.PP
|
||||||
|
|||||||
@ -104,15 +104,15 @@ the data.
|
|||||||
'--date2'
|
'--date2'
|
||||||
|
|
||||||
show, and match with -b/-e/-p/date:, secondary dates instead
|
show, and match with -b/-e/-p/date:, secondary dates instead
|
||||||
'-C --cleared'
|
'-U --unmarked'
|
||||||
|
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with -P or -C)
|
||||||
'-P --pending'
|
'-P --pending'
|
||||||
|
|
||||||
include only pending postings/txns
|
include only pending postings/txns
|
||||||
'-U --unmarked'
|
'-C --cleared'
|
||||||
|
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
'-R --real'
|
'-R --real'
|
||||||
|
|
||||||
include only non-virtual postings
|
include only non-virtual postings
|
||||||
@ -260,10 +260,12 @@ disturbed by a filter query). Period balances ignore transactions
|
|||||||
before the report start date, so they show the change in balance during
|
before the report start date, so they show the change in balance during
|
||||||
the report period. They are more useful eg when viewing a time log.
|
the report period. They are more useful eg when viewing a time log.
|
||||||
|
|
||||||
'C' toggles cleared mode, which shows balances for postings with
|
'U' toggles filtering by unmarked status, including or excluding
|
||||||
cleared status only. Similarly, 'P' toggles pending mode, which shows
|
unmarked postings in the balances. Similarly, 'P' toggles pending
|
||||||
balances for pending postings only, and 'U' toggles uncleared mode,
|
postings, and 'C' toggles cleared postings. (By default, balances
|
||||||
which shows balances for unmarked postings only.
|
include all postings; if you activate one or two status filters, only
|
||||||
|
those postings are included; and if you activate all three, the filter
|
||||||
|
is removed.)
|
||||||
|
|
||||||
'R' toggles real mode, in which virtual postings are ignored.
|
'R' toggles real mode, in which virtual postings are ignored.
|
||||||
|
|
||||||
@ -305,10 +307,12 @@ subaccounts. In other words, the register always shows the transactions
|
|||||||
responsible for the period balance shown on the accounts screen. As on
|
responsible for the period balance shown on the accounts screen. As on
|
||||||
the accounts screen, this can be toggled with 'F'.
|
the accounts screen, this can be toggled with 'F'.
|
||||||
|
|
||||||
'C' toggles cleared mode, which shows transactions with cleared
|
'U' toggles filtering by unmarked status, showing or hiding unmarked
|
||||||
status only. Similarly, 'P' toggles pending mode, which shows only
|
transactions. Similarly, 'P' toggles pending transactions, and 'C'
|
||||||
pending transactions, and 'U' toggles uncleared mode, which shows only
|
toggles cleared transactions. (By default, transactions with all
|
||||||
unmarked transactions.
|
statuses are shown; if you activate one or two status filters, only
|
||||||
|
those transactions are shown; and if you activate all three, the filter
|
||||||
|
is removed.)q
|
||||||
|
|
||||||
'R' toggles real mode, in which virtual postings are ignored.
|
'R' toggles real mode, in which virtual postings are ignored.
|
||||||
|
|
||||||
@ -359,17 +363,17 @@ Tag Table:
|
|||||||
Node: Top73
|
Node: Top73
|
||||||
Node: OPTIONS831
|
Node: OPTIONS831
|
||||||
Ref: #options930
|
Ref: #options930
|
||||||
Node: KEYS3643
|
Node: KEYS3671
|
||||||
Ref: #keys3740
|
Ref: #keys3768
|
||||||
Node: SCREENS6329
|
Node: SCREENS6357
|
||||||
Ref: #screens6416
|
Ref: #screens6444
|
||||||
Node: Accounts screen6506
|
Node: Accounts screen6534
|
||||||
Ref: #accounts-screen6636
|
Ref: #accounts-screen6664
|
||||||
Node: Register screen8766
|
Node: Register screen8894
|
||||||
Ref: #register-screen8923
|
Ref: #register-screen9051
|
||||||
Node: Transaction screen10866
|
Node: Transaction screen11125
|
||||||
Ref: #transaction-screen11026
|
Ref: #transaction-screen11285
|
||||||
Node: Error screen11896
|
Node: Error screen12155
|
||||||
Ref: #error-screen12020
|
Ref: #error-screen12279
|
||||||
|
|
||||||
End Tag Table
|
End Tag Table
|
||||||
|
|||||||
@ -101,14 +101,14 @@ OPTIONS
|
|||||||
--date2
|
--date2
|
||||||
show, and match with -b/-e/-p/date:, secondary dates instead
|
show, and match with -b/-e/-p/date:, secondary dates instead
|
||||||
|
|
||||||
-C --cleared
|
-U --unmarked
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with -P or -C)
|
||||||
|
|
||||||
-P --pending
|
-P --pending
|
||||||
include only pending postings/txns
|
include only pending postings/txns
|
||||||
|
|
||||||
-U --unmarked
|
-C --cleared
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
|
|
||||||
-R --real
|
-R --real
|
||||||
include only non-virtual postings
|
include only non-virtual postings
|
||||||
@ -226,15 +226,16 @@ SCREENS
|
|||||||
before the report start date, so they show the change in balance during
|
before the report start date, so they show the change in balance during
|
||||||
the report period. They are more useful eg when viewing a time log.
|
the report period. They are more useful eg when viewing a time log.
|
||||||
|
|
||||||
C toggles cleared mode, which shows balances for postings with cleared
|
U toggles filtering by unmarked status, including or excluding unmarked
|
||||||
status only. Similarly, P toggles pending mode, which shows balances
|
postings in the balances. Similarly, P toggles pending postings, and C
|
||||||
for pending postings only, and U toggles uncleared mode, which shows
|
toggles cleared postings. (By default, balances include all postings;
|
||||||
balances for unmarked postings only.
|
if you activate one or two status filters, only those postings are
|
||||||
|
included; and if you activate all three, the filter is removed.)
|
||||||
|
|
||||||
R toggles real mode, in which virtual postings are ignored.
|
R toggles real mode, in which virtual postings are ignored.
|
||||||
|
|
||||||
Z toggles nonzero mode, in which only accounts with nonzero balances
|
Z toggles nonzero mode, in which only accounts with nonzero balances
|
||||||
are shown (hledger-ui shows zero items by default, unlike command-line
|
are shown (hledger-ui shows zero items by default, unlike command-line
|
||||||
hledger).
|
hledger).
|
||||||
|
|
||||||
Press right or enter to view an account's transactions register.
|
Press right or enter to view an account's transactions register.
|
||||||
@ -243,63 +244,65 @@ SCREENS
|
|||||||
This screen shows the transactions affecting a particular account, like
|
This screen shows the transactions affecting a particular account, like
|
||||||
a check register. Each line represents one transaction and shows:
|
a check register. Each line represents one transaction and shows:
|
||||||
|
|
||||||
o the other account(s) involved, in abbreviated form. (If there are
|
o the other account(s) involved, in abbreviated form. (If there are
|
||||||
both real and virtual postings, it shows only the accounts affected
|
both real and virtual postings, it shows only the accounts affected
|
||||||
by real postings.)
|
by real postings.)
|
||||||
|
|
||||||
o the overall change to the current account's balance; positive for an
|
o the overall change to the current account's balance; positive for an
|
||||||
inflow to this account, negative for an outflow.
|
inflow to this account, negative for an outflow.
|
||||||
|
|
||||||
o the running historical total or period total for the current account,
|
o the running historical total or period total for the current account,
|
||||||
after the transaction. This can be toggled with H. Similar to the
|
after the transaction. This can be toggled with H. Similar to the
|
||||||
accounts screen, the historical total is affected by transactions
|
accounts screen, the historical total is affected by transactions
|
||||||
(filtered by the filter query) before the report start date, while
|
(filtered by the filter query) before the report start date, while
|
||||||
the period total is not. If the historical total is not disturbed by
|
the period total is not. If the historical total is not disturbed by
|
||||||
a filter query, it will be the running historical balance you would
|
a filter query, it will be the running historical balance you would
|
||||||
see on a bank register for the current account.
|
see on a bank register for the current account.
|
||||||
|
|
||||||
If the accounts screen was in tree mode, the register screen will
|
If the accounts screen was in tree mode, the register screen will
|
||||||
include transactions from both the current account and its subaccounts.
|
include transactions from both the current account and its subaccounts.
|
||||||
If the accounts screen was in flat mode, and a non-depth-clipped
|
If the accounts screen was in flat mode, and a non-depth-clipped
|
||||||
account was selected, the register screen will exclude transactions
|
account was selected, the register screen will exclude transactions
|
||||||
from subaccounts. In other words, the register always shows the trans-
|
from subaccounts. In other words, the register always shows the trans-
|
||||||
actions responsible for the period balance shown on the accounts
|
actions responsible for the period balance shown on the accounts
|
||||||
screen. As on the accounts screen, this can be toggled with F.
|
screen. As on the accounts screen, this can be toggled with F.
|
||||||
|
|
||||||
C toggles cleared mode, which shows transactions with cleared status
|
U toggles filtering by unmarked status, showing or hiding unmarked
|
||||||
only. Similarly, P toggles pending mode, which shows only pending
|
transactions. Similarly, P toggles pending transactions, and C toggles
|
||||||
transactions, and U toggles uncleared mode, which shows only unmarked
|
cleared transactions. (By default, transactions with all statuses are
|
||||||
transactions.
|
shown; if you activate one or two status filters, only those transac-
|
||||||
|
tions are shown; and if you activate all three, the filter is
|
||||||
|
removed.)q
|
||||||
|
|
||||||
R toggles real mode, in which virtual postings are ignored.
|
R toggles real mode, in which virtual postings are ignored.
|
||||||
|
|
||||||
Z toggles nonzero mode, in which only transactions posting a nonzero
|
Z toggles nonzero mode, in which only transactions posting a nonzero
|
||||||
change are shown (hledger-ui shows zero items by default, unlike com-
|
change are shown (hledger-ui shows zero items by default, unlike com-
|
||||||
mand-line hledger).
|
mand-line hledger).
|
||||||
|
|
||||||
Press right (or enter) to view the selected transaction in detail.
|
Press right (or enter) to view the selected transaction in detail.
|
||||||
|
|
||||||
Transaction screen
|
Transaction screen
|
||||||
This screen shows a single transaction, as a general journal entry,
|
This screen shows a single transaction, as a general journal entry,
|
||||||
similar to hledger's print command and journal format (hledger_jour-
|
similar to hledger's print command and journal format (hledger_jour-
|
||||||
nal(5)).
|
nal(5)).
|
||||||
|
|
||||||
The transaction's date(s) and any cleared flag, transaction code,
|
The transaction's date(s) and any cleared flag, transaction code,
|
||||||
description, comments, along with all of its account postings are
|
description, comments, along with all of its account postings are
|
||||||
shown. Simple transactions have two postings, but there can be more
|
shown. Simple transactions have two postings, but there can be more
|
||||||
(or in certain cases, fewer).
|
(or in certain cases, fewer).
|
||||||
|
|
||||||
up and down will step through all transactions listed in the previous
|
up and down will step through all transactions listed in the previous
|
||||||
account register screen. In the title bar, the numbers in parentheses
|
account register screen. In the title bar, the numbers in parentheses
|
||||||
show your position within that account register. They will vary
|
show your position within that account register. They will vary
|
||||||
depending on which account register you came from (remember most trans-
|
depending on which account register you came from (remember most trans-
|
||||||
actions appear in multiple account registers). The #N number preceding
|
actions appear in multiple account registers). The #N number preceding
|
||||||
them is the transaction's position within the complete unfiltered jour-
|
them is the transaction's position within the complete unfiltered jour-
|
||||||
nal, which is a more stable id (at least until the next reload).
|
nal, which is a more stable id (at least until the next reload).
|
||||||
|
|
||||||
Error screen
|
Error screen
|
||||||
This screen will appear if there is a problem, such as a parse error,
|
This screen will appear if there is a problem, such as a parse error,
|
||||||
when you press g to reload. Once you have fixed the problem, press g
|
when you press g to reload. Once you have fixed the problem, press g
|
||||||
again to reload and resume normal operation. (Or, you can press escape
|
again to reload and resume normal operation. (Or, you can press escape
|
||||||
to cancel the reload attempt.)
|
to cancel the reload attempt.)
|
||||||
|
|
||||||
@ -307,17 +310,17 @@ ENVIRONMENT
|
|||||||
COLUMNS The screen width to use. Default: the full terminal width.
|
COLUMNS The screen width to use. Default: the full terminal width.
|
||||||
|
|
||||||
LEDGER_FILE The journal file path when not specified with -f. Default:
|
LEDGER_FILE The journal file path when not specified with -f. Default:
|
||||||
~/.hledger.journal (on windows, perhaps C:/Users/USER/.hledger.jour-
|
~/.hledger.journal (on windows, perhaps C:/Users/USER/.hledger.jour-
|
||||||
nal).
|
nal).
|
||||||
|
|
||||||
FILES
|
FILES
|
||||||
Reads data from one or more files in hledger journal, timeclock, time-
|
Reads data from one or more files in hledger journal, timeclock, time-
|
||||||
dot, or CSV format specified with -f, or $LEDGER_FILE, or
|
dot, or CSV format specified with -f, or $LEDGER_FILE, or
|
||||||
$HOME/.hledger.journal (on windows, perhaps
|
$HOME/.hledger.journal (on windows, perhaps
|
||||||
C:/Users/USER/.hledger.journal).
|
C:/Users/USER/.hledger.journal).
|
||||||
|
|
||||||
BUGS
|
BUGS
|
||||||
The need to precede options with -- when invoked from hledger is awk-
|
The need to precede options with -- when invoked from hledger is awk-
|
||||||
ward.
|
ward.
|
||||||
|
|
||||||
-f- doesn't work (hledger-ui can't read from stdin).
|
-f- doesn't work (hledger-ui can't read from stdin).
|
||||||
@ -325,13 +328,13 @@ BUGS
|
|||||||
-V affects only the accounts screen.
|
-V affects only the accounts screen.
|
||||||
|
|
||||||
When you press g, the current and all previous screens are regenerated,
|
When you press g, the current and all previous screens are regenerated,
|
||||||
which may cause a noticeable pause with large files. Also there is no
|
which may cause a noticeable pause with large files. Also there is no
|
||||||
visual indication that this is in progress.
|
visual indication that this is in progress.
|
||||||
|
|
||||||
--watch is not yet fully robust. It works well for normal usage, but
|
--watch is not yet fully robust. It works well for normal usage, but
|
||||||
many file changes in a short time (eg saving the file thousands of
|
many file changes in a short time (eg saving the file thousands of
|
||||||
times with an editor macro) can cause problems at least on OSX. Symp-
|
times with an editor macro) can cause problems at least on OSX. Symp-
|
||||||
toms include: unresponsive UI, periodic resetting of the cursor posi-
|
toms include: unresponsive UI, periodic resetting of the cursor posi-
|
||||||
tion, momentary display of parse errors, high CPU usage eventually sub-
|
tion, momentary display of parse errors, high CPU usage eventually sub-
|
||||||
siding, and possibly a small but persistent build-up of CPU usage until
|
siding, and possibly a small but persistent build-up of CPU usage until
|
||||||
the program is restarted.
|
the program is restarted.
|
||||||
@ -339,7 +342,7 @@ BUGS
|
|||||||
|
|
||||||
|
|
||||||
REPORTING BUGS
|
REPORTING BUGS
|
||||||
Report bugs at http://bugs.hledger.org (or on the #hledger IRC channel
|
Report bugs at http://bugs.hledger.org (or on the #hledger IRC channel
|
||||||
or hledger mail list)
|
or hledger mail list)
|
||||||
|
|
||||||
|
|
||||||
@ -353,7 +356,7 @@ COPYRIGHT
|
|||||||
|
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
hledger(1), hledger-ui(1), hledger-web(1), hledger-api(1),
|
hledger(1), hledger-ui(1), hledger-web(1), hledger-api(1),
|
||||||
hledger_csv(5), hledger_journal(5), hledger_timeclock(5), hledger_time-
|
hledger_csv(5), hledger_journal(5), hledger_timeclock(5), hledger_time-
|
||||||
dot(5), ledger(1)
|
dot(5), ledger(1)
|
||||||
|
|
||||||
|
|||||||
@ -202,8 +202,8 @@ show, and match with \-b/\-e/\-p/date:, secondary dates instead
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-C\ \-\-cleared\f[]
|
.B \f[C]\-U\ \-\-unmarked\f[]
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with \-P or \-C)
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
@ -212,8 +212,8 @@ include only pending postings/txns
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-U\ \-\-unmarked\f[]
|
.B \f[C]\-C\ \-\-cleared\f[]
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
@ -149,15 +149,15 @@ options as shown above.
|
|||||||
'--date2'
|
'--date2'
|
||||||
|
|
||||||
show, and match with -b/-e/-p/date:, secondary dates instead
|
show, and match with -b/-e/-p/date:, secondary dates instead
|
||||||
'-C --cleared'
|
'-U --unmarked'
|
||||||
|
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with -P or -C)
|
||||||
'-P --pending'
|
'-P --pending'
|
||||||
|
|
||||||
include only pending postings/txns
|
include only pending postings/txns
|
||||||
'-U --unmarked'
|
'-C --cleared'
|
||||||
|
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
'-R --real'
|
'-R --real'
|
||||||
|
|
||||||
include only non-virtual postings
|
include only non-virtual postings
|
||||||
|
|||||||
@ -146,14 +146,14 @@ OPTIONS
|
|||||||
--date2
|
--date2
|
||||||
show, and match with -b/-e/-p/date:, secondary dates instead
|
show, and match with -b/-e/-p/date:, secondary dates instead
|
||||||
|
|
||||||
-C --cleared
|
-U --unmarked
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with -P or -C)
|
||||||
|
|
||||||
-P --pending
|
-P --pending
|
||||||
include only pending postings/txns
|
include only pending postings/txns
|
||||||
|
|
||||||
-U --unmarked
|
-C --cleared
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
|
|
||||||
-R --real
|
-R --real
|
||||||
include only non-virtual postings
|
include only non-virtual postings
|
||||||
|
|||||||
@ -273,8 +273,8 @@ show, and match with \-b/\-e/\-p/date:, secondary dates instead
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-C\ \-\-cleared\f[]
|
.B \f[C]\-U\ \-\-unmarked\f[]
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with \-P or \-C)
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
@ -283,8 +283,8 @@ include only pending postings/txns
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-U\ \-\-unmarked\f[]
|
.B \f[C]\-C\ \-\-cleared\f[]
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
@ -1052,8 +1052,8 @@ match real or virtual postings respectively
|
|||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \f[B]\f[C]status:*,\ status:!,\ status:\f[]\f[]
|
.B \f[B]\f[C]status:,\ status:!,\ status:*\f[]\f[]
|
||||||
match cleared, pending, or uncleared/pending transactions respectively
|
match unmarked, pending, or cleared transactions respectively
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
@ -214,15 +214,15 @@ different, like git.)
|
|||||||
'--date2'
|
'--date2'
|
||||||
|
|
||||||
show, and match with -b/-e/-p/date:, secondary dates instead
|
show, and match with -b/-e/-p/date:, secondary dates instead
|
||||||
'-C --cleared'
|
'-U --unmarked'
|
||||||
|
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with -P or -C)
|
||||||
'-P --pending'
|
'-P --pending'
|
||||||
|
|
||||||
include only pending postings/txns
|
include only pending postings/txns
|
||||||
'-U --unmarked'
|
'-C --cleared'
|
||||||
|
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
'-R --real'
|
'-R --real'
|
||||||
|
|
||||||
include only non-virtual postings
|
include only non-virtual postings
|
||||||
@ -744,10 +744,9 @@ match (or negatively match)
|
|||||||
*'real:, real:0'*
|
*'real:, real:0'*
|
||||||
|
|
||||||
match real or virtual postings respectively
|
match real or virtual postings respectively
|
||||||
*'status:*, status:!, status:'*
|
*'status:, status:!, status:*'*
|
||||||
|
|
||||||
match cleared, pending, or uncleared/pending transactions
|
match unmarked, pending, or cleared transactions respectively
|
||||||
respectively
|
|
||||||
*'tag:REGEX[=REGEX]'*
|
*'tag:REGEX[=REGEX]'*
|
||||||
|
|
||||||
match by tag name, and optionally also by tag value. Note a tag:
|
match by tag name, and optionally also by tag value. Note a tag:
|
||||||
@ -2120,123 +2119,123 @@ Node: OPTIONS3640
|
|||||||
Ref: #options3744
|
Ref: #options3744
|
||||||
Node: General options4025
|
Node: General options4025
|
||||||
Ref: #general-options4152
|
Ref: #general-options4152
|
||||||
Node: Command options6662
|
Node: Command options6690
|
||||||
Ref: #command-options6815
|
Ref: #command-options6843
|
||||||
Node: Command arguments7213
|
Node: Command arguments7241
|
||||||
Ref: #command-arguments7373
|
Ref: #command-arguments7401
|
||||||
Node: Special characters7494
|
Node: Special characters7522
|
||||||
Ref: #special-characters7652
|
Ref: #special-characters7680
|
||||||
Node: Input files8820
|
Node: Input files8848
|
||||||
Ref: #input-files8958
|
Ref: #input-files8986
|
||||||
Node: Smart dates10921
|
Node: Smart dates10949
|
||||||
Ref: #smart-dates11064
|
Ref: #smart-dates11092
|
||||||
Node: Report start & end date12043
|
Node: Report start & end date12071
|
||||||
Ref: #report-start-end-date12215
|
Ref: #report-start-end-date12243
|
||||||
Node: Report intervals13281
|
Node: Report intervals13309
|
||||||
Ref: #report-intervals13446
|
Ref: #report-intervals13474
|
||||||
Node: Period expressions13847
|
Node: Period expressions13875
|
||||||
Ref: #period-expressions14007
|
Ref: #period-expressions14035
|
||||||
Node: Depth limiting16347
|
Node: Depth limiting16375
|
||||||
Ref: #depth-limiting16493
|
Ref: #depth-limiting16521
|
||||||
Node: Pivoting16694
|
Node: Pivoting16722
|
||||||
Ref: #pivoting16814
|
Ref: #pivoting16842
|
||||||
Node: Cost18585
|
Node: Cost18613
|
||||||
Ref: #cost18695
|
Ref: #cost18723
|
||||||
Node: Market value18813
|
Node: Market value18841
|
||||||
Ref: #market-value18950
|
Ref: #market-value18978
|
||||||
Node: Regular expressions20250
|
Node: Regular expressions20278
|
||||||
Ref: #regular-expressions20388
|
Ref: #regular-expressions20416
|
||||||
Node: QUERIES21749
|
Node: QUERIES21777
|
||||||
Ref: #queries21853
|
Ref: #queries21881
|
||||||
Node: COMMANDS25532
|
Node: COMMANDS25546
|
||||||
Ref: #commands25646
|
Ref: #commands25660
|
||||||
Node: accounts26319
|
Node: accounts26333
|
||||||
Ref: #accounts26419
|
Ref: #accounts26433
|
||||||
Node: activity27401
|
Node: activity27415
|
||||||
Ref: #activity27513
|
Ref: #activity27527
|
||||||
Node: add27872
|
Node: add27886
|
||||||
Ref: #add27973
|
Ref: #add27987
|
||||||
Node: balance30631
|
Node: balance30645
|
||||||
Ref: #balance30744
|
Ref: #balance30758
|
||||||
Node: Flat mode33759
|
Node: Flat mode33773
|
||||||
Ref: #flat-mode33886
|
Ref: #flat-mode33900
|
||||||
Node: Depth limited balance reports34306
|
Node: Depth limited balance reports34320
|
||||||
Ref: #depth-limited-balance-reports34509
|
Ref: #depth-limited-balance-reports34523
|
||||||
Node: Multicolumn balance reports34929
|
Node: Multicolumn balance reports34943
|
||||||
Ref: #multicolumn-balance-reports35140
|
Ref: #multicolumn-balance-reports35154
|
||||||
Node: Custom balance output39788
|
Node: Custom balance output39802
|
||||||
Ref: #custom-balance-output39972
|
Ref: #custom-balance-output39986
|
||||||
Node: Colour support42065
|
Node: Colour support42079
|
||||||
Ref: #colour-support42226
|
Ref: #colour-support42240
|
||||||
Node: Output destination42399
|
Node: Output destination42413
|
||||||
Ref: #output-destination42557
|
Ref: #output-destination42571
|
||||||
Node: CSV output42827
|
Node: CSV output42841
|
||||||
Ref: #csv-output42946
|
Ref: #csv-output42960
|
||||||
Node: balancesheet43343
|
Node: balancesheet43357
|
||||||
Ref: #balancesheet43471
|
Ref: #balancesheet43485
|
||||||
Node: cashflow45378
|
Node: cashflow45392
|
||||||
Ref: #cashflow45495
|
Ref: #cashflow45509
|
||||||
Node: help47363
|
Node: help47377
|
||||||
Ref: #help47475
|
Ref: #help47489
|
||||||
Node: incomestatement48313
|
Node: incomestatement48327
|
||||||
Ref: #incomestatement48443
|
Ref: #incomestatement48457
|
||||||
Node: info50335
|
Node: info50349
|
||||||
Ref: #info50442
|
Ref: #info50456
|
||||||
Node: man50806
|
Node: man50820
|
||||||
Ref: #man50903
|
Ref: #man50917
|
||||||
Node: print51308
|
Node: print51322
|
||||||
Ref: #print51413
|
Ref: #print51427
|
||||||
Node: register55169
|
Node: register55183
|
||||||
Ref: #register55282
|
Ref: #register55296
|
||||||
Node: Custom register output59778
|
Node: Custom register output59792
|
||||||
Ref: #custom-register-output59909
|
Ref: #custom-register-output59923
|
||||||
Node: stats61206
|
Node: stats61220
|
||||||
Ref: #stats61312
|
Ref: #stats61326
|
||||||
Node: test62193
|
Node: test62207
|
||||||
Ref: #test62280
|
Ref: #test62294
|
||||||
Node: ADD-ON COMMANDS62648
|
Node: ADD-ON COMMANDS62662
|
||||||
Ref: #add-on-commands62760
|
Ref: #add-on-commands62774
|
||||||
Node: Official add-ons64047
|
Node: Official add-ons64061
|
||||||
Ref: #official-add-ons64189
|
Ref: #official-add-ons64203
|
||||||
Node: api64276
|
Node: api64290
|
||||||
Ref: #api64367
|
Ref: #api64381
|
||||||
Node: ui64419
|
Node: ui64433
|
||||||
Ref: #ui64520
|
Ref: #ui64534
|
||||||
Node: web64578
|
Node: web64592
|
||||||
Ref: #web64669
|
Ref: #web64683
|
||||||
Node: Third party add-ons64715
|
Node: Third party add-ons64729
|
||||||
Ref: #third-party-add-ons64892
|
Ref: #third-party-add-ons64906
|
||||||
Node: diff65027
|
Node: diff65041
|
||||||
Ref: #diff65126
|
Ref: #diff65140
|
||||||
Node: iadd65225
|
Node: iadd65239
|
||||||
Ref: #iadd65341
|
Ref: #iadd65355
|
||||||
Node: interest65424
|
Node: interest65438
|
||||||
Ref: #interest65547
|
Ref: #interest65561
|
||||||
Node: irr65642
|
Node: irr65656
|
||||||
Ref: #irr65742
|
Ref: #irr65756
|
||||||
Node: Experimental add-ons65820
|
Node: Experimental add-ons65834
|
||||||
Ref: #experimental-add-ons65974
|
Ref: #experimental-add-ons65988
|
||||||
Node: autosync66367
|
Node: autosync66381
|
||||||
Ref: #autosync66481
|
Ref: #autosync66495
|
||||||
Node: budget66720
|
Node: budget66734
|
||||||
Ref: #budget66844
|
Ref: #budget66858
|
||||||
Node: chart66910
|
Node: chart66924
|
||||||
Ref: #chart67029
|
Ref: #chart67043
|
||||||
Node: check67100
|
Node: check67114
|
||||||
Ref: #check67224
|
Ref: #check67238
|
||||||
Node: check-dates67291
|
Node: check-dates67305
|
||||||
Ref: #check-dates67433
|
Ref: #check-dates67447
|
||||||
Node: check-dupes67506
|
Node: check-dupes67520
|
||||||
Ref: #check-dupes67649
|
Ref: #check-dupes67663
|
||||||
Node: equity67726
|
Node: equity67740
|
||||||
Ref: #equity67854
|
Ref: #equity67868
|
||||||
Node: prices67973
|
Node: prices67987
|
||||||
Ref: #prices68102
|
Ref: #prices68116
|
||||||
Node: print-unique68157
|
Node: print-unique68171
|
||||||
Ref: #print-unique68306
|
Ref: #print-unique68320
|
||||||
Node: register-match68399
|
Node: register-match68413
|
||||||
Ref: #register-match68555
|
Ref: #register-match68569
|
||||||
Node: rewrite68653
|
Node: rewrite68667
|
||||||
Ref: #rewrite68774
|
Ref: #rewrite68788
|
||||||
|
|
||||||
End Tag Table
|
End Tag Table
|
||||||
|
|||||||
@ -182,14 +182,14 @@ OPTIONS
|
|||||||
--date2
|
--date2
|
||||||
show, and match with -b/-e/-p/date:, secondary dates instead
|
show, and match with -b/-e/-p/date:, secondary dates instead
|
||||||
|
|
||||||
-C --cleared
|
-U --unmarked
|
||||||
include only cleared postings/txns
|
include only unmarked postings/txns (can combine with -P or -C)
|
||||||
|
|
||||||
-P --pending
|
-P --pending
|
||||||
include only pending postings/txns
|
include only pending postings/txns
|
||||||
|
|
||||||
-U --unmarked
|
-C --cleared
|
||||||
include only unmarked postings/txns
|
include only cleared postings/txns
|
||||||
|
|
||||||
-R --real
|
-R --real
|
||||||
include only non-virtual postings
|
include only non-virtual postings
|
||||||
@ -684,14 +684,13 @@ QUERIES
|
|||||||
real:, real:0
|
real:, real:0
|
||||||
match real or virtual postings respectively
|
match real or virtual postings respectively
|
||||||
|
|
||||||
status:*, status:!, status:
|
status:, status:!, status:*
|
||||||
match cleared, pending, or uncleared/pending transactions
|
match unmarked, pending, or cleared transactions respectively
|
||||||
respectively
|
|
||||||
|
|
||||||
tag:REGEX[=REGEX]
|
tag:REGEX[=REGEX]
|
||||||
match by tag name, and optionally also by tag value. Note a
|
match by tag name, and optionally also by tag value. Note a
|
||||||
tag: query is considered to match a transaction if it matches
|
tag: query is considered to match a transaction if it matches
|
||||||
any of the postings. Also remember that postings inherit the
|
any of the postings. Also remember that postings inherit the
|
||||||
tags of their parent transaction.
|
tags of their parent transaction.
|
||||||
|
|
||||||
not: before any of the above negates the match.
|
not: before any of the above negates the match.
|
||||||
@ -699,24 +698,24 @@ QUERIES
|
|||||||
inacct:ACCTNAME
|
inacct:ACCTNAME
|
||||||
a special term used automatically when you click an account name
|
a special term used automatically when you click an account name
|
||||||
in hledger-web, specifying the account register we are currently
|
in hledger-web, specifying the account register we are currently
|
||||||
in (selects the transactions of that account and how to show
|
in (selects the transactions of that account and how to show
|
||||||
them, can be filtered further with acct etc). Not supported
|
them, can be filtered further with acct etc). Not supported
|
||||||
elsewhere in hledger.
|
elsewhere in hledger.
|
||||||
|
|
||||||
Some of these can also be expressed as command-line options (eg depth:2
|
Some of these can also be expressed as command-line options (eg depth:2
|
||||||
is equivalent to --depth 2). Generally you can mix options and query
|
is equivalent to --depth 2). Generally you can mix options and query
|
||||||
arguments, and the resulting query will be their intersection (perhaps
|
arguments, and the resulting query will be their intersection (perhaps
|
||||||
excluding the -p/--period option).
|
excluding the -p/--period option).
|
||||||
|
|
||||||
COMMANDS
|
COMMANDS
|
||||||
hledger provides a number of subcommands; hledger with no arguments
|
hledger provides a number of subcommands; hledger with no arguments
|
||||||
shows a list.
|
shows a list.
|
||||||
|
|
||||||
If you install additional hledger-* packages, or if you put programs or
|
If you install additional hledger-* packages, or if you put programs or
|
||||||
scripts named hledger-NAME in your PATH, these will also be listed as
|
scripts named hledger-NAME in your PATH, these will also be listed as
|
||||||
subcommands.
|
subcommands.
|
||||||
|
|
||||||
Run a subcommand by writing its name as first argument (eg
|
Run a subcommand by writing its name as first argument (eg
|
||||||
hledger incomestatement). You can also write any unambiguous prefix of
|
hledger incomestatement). You can also write any unambiguous prefix of
|
||||||
a command name (hledger inc), or one of the standard short aliases dis-
|
a command name (hledger inc), or one of the standard short aliases dis-
|
||||||
played in the command list (hledger is).
|
played in the command list (hledger is).
|
||||||
@ -731,14 +730,14 @@ COMMANDS
|
|||||||
--drop=N
|
--drop=N
|
||||||
in flat mode: omit N leading account name parts
|
in flat mode: omit N leading account name parts
|
||||||
|
|
||||||
This command lists all account names that are in use (ie, all the
|
This command lists all account names that are in use (ie, all the
|
||||||
accounts which have at least one transaction posting to them). With
|
accounts which have at least one transaction posting to them). With
|
||||||
query arguments, only matched account names are shown.
|
query arguments, only matched account names are shown.
|
||||||
|
|
||||||
It shows a flat list by default. With --tree, it uses indentation to
|
It shows a flat list by default. With --tree, it uses indentation to
|
||||||
show the account hierarchy.
|
show the account hierarchy.
|
||||||
|
|
||||||
In flat mode you can add --drop N to omit the first few account name
|
In flat mode you can add --drop N to omit the first few account name
|
||||||
components.
|
components.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
@ -781,8 +780,8 @@ COMMANDS
|
|||||||
activity
|
activity
|
||||||
Show an ascii barchart of posting counts per interval.
|
Show an ascii barchart of posting counts per interval.
|
||||||
|
|
||||||
The activity command displays an ascii histogram showing transaction
|
The activity command displays an ascii histogram showing transaction
|
||||||
counts by day, week, month or other reporting interval (by day is the
|
counts by day, week, month or other reporting interval (by day is the
|
||||||
default). With query arguments, it counts only matched transactions.
|
default). With query arguments, it counts only matched transactions.
|
||||||
|
|
||||||
$ hledger activity --quarterly
|
$ hledger activity --quarterly
|
||||||
@ -795,24 +794,24 @@ COMMANDS
|
|||||||
Prompt for transactions and add them to the journal.
|
Prompt for transactions and add them to the journal.
|
||||||
|
|
||||||
--no-new-accounts
|
--no-new-accounts
|
||||||
don't allow creating new accounts; helps prevent typos when
|
don't allow creating new accounts; helps prevent typos when
|
||||||
entering account names
|
entering account names
|
||||||
|
|
||||||
Many hledger users edit their journals directly with a text editor, or
|
Many hledger users edit their journals directly with a text editor, or
|
||||||
generate them from CSV. For more interactive data entry, there is the
|
generate them from CSV. For more interactive data entry, there is the
|
||||||
add command, which prompts interactively on the console for new trans-
|
add command, which prompts interactively on the console for new trans-
|
||||||
actions, and appends them to the journal file (if there are multiple
|
actions, and appends them to the journal file (if there are multiple
|
||||||
-f FILE options, the first file is used.) Existing transactions are not
|
-f FILE options, the first file is used.) Existing transactions are not
|
||||||
changed. This is the only hledger command that writes to the journal
|
changed. This is the only hledger command that writes to the journal
|
||||||
file.
|
file.
|
||||||
|
|
||||||
To use it, just run hledger add and follow the prompts. You can add as
|
To use it, just run hledger add and follow the prompts. You can add as
|
||||||
many transactions as you like; when you are finished, enter . or press
|
many transactions as you like; when you are finished, enter . or press
|
||||||
control-d or control-c to exit.
|
control-d or control-c to exit.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
o add tries to provide useful defaults, using the most similar recent
|
o add tries to provide useful defaults, using the most similar recent
|
||||||
transaction (by description) as a template.
|
transaction (by description) as a template.
|
||||||
|
|
||||||
o You can also set the initial defaults with command line arguments.
|
o You can also set the initial defaults with command line arguments.
|
||||||
@ -820,20 +819,20 @@ COMMANDS
|
|||||||
o Readline-style edit keys can be used during data entry.
|
o Readline-style edit keys can be used during data entry.
|
||||||
|
|
||||||
o The tab key will auto-complete whenever possible - accounts, descrip-
|
o The tab key will auto-complete whenever possible - accounts, descrip-
|
||||||
tions, dates (yesterday, today, tomorrow). If the input area is
|
tions, dates (yesterday, today, tomorrow). If the input area is
|
||||||
empty, it will insert the default value.
|
empty, it will insert the default value.
|
||||||
|
|
||||||
o If the journal defines a default commodity, it will be added to any
|
o If the journal defines a default commodity, it will be added to any
|
||||||
bare numbers entered.
|
bare numbers entered.
|
||||||
|
|
||||||
o A parenthesised transaction code may be entered following a date.
|
o A parenthesised transaction code may be entered following a date.
|
||||||
|
|
||||||
o Comments and tags may be entered following a description or amount.
|
o Comments and tags may be entered following a description or amount.
|
||||||
|
|
||||||
o If you make a mistake, enter < at any prompt to restart the transac-
|
o If you make a mistake, enter < at any prompt to restart the transac-
|
||||||
tion.
|
tion.
|
||||||
|
|
||||||
o Input prompts are displayed in a different colour when the terminal
|
o Input prompts are displayed in a different colour when the terminal
|
||||||
supports it.
|
supports it.
|
||||||
|
|
||||||
Example (see the tutorial for a detailed explanation):
|
Example (see the tutorial for a detailed explanation):
|
||||||
@ -870,7 +869,7 @@ COMMANDS
|
|||||||
show balance change in each period (default)
|
show balance change in each period (default)
|
||||||
|
|
||||||
--cumulative
|
--cumulative
|
||||||
show balance change accumulated across periods (in multicolumn
|
show balance change accumulated across periods (in multicolumn
|
||||||
reports)
|
reports)
|
||||||
|
|
||||||
-H --historical
|
-H --historical
|
||||||
@ -905,13 +904,13 @@ COMMANDS
|
|||||||
select the output format. Supported formats: txt, csv.
|
select the output format. Supported formats: txt, csv.
|
||||||
|
|
||||||
-o FILE --output-file=FILE
|
-o FILE --output-file=FILE
|
||||||
write output to FILE. A file extension matching one of the
|
write output to FILE. A file extension matching one of the
|
||||||
above formats selects that format.
|
above formats selects that format.
|
||||||
|
|
||||||
--pretty-tables
|
--pretty-tables
|
||||||
Use unicode to display prettier tables.
|
Use unicode to display prettier tables.
|
||||||
|
|
||||||
The balance command displays accounts and balances. It is hledger's
|
The balance command displays accounts and balances. It is hledger's
|
||||||
most featureful and versatile command.
|
most featureful and versatile command.
|
||||||
|
|
||||||
$ hledger balance
|
$ hledger balance
|
||||||
@ -928,25 +927,25 @@ COMMANDS
|
|||||||
--------------------
|
--------------------
|
||||||
0
|
0
|
||||||
|
|
||||||
More precisely, the balance command shows the change to each account's
|
More precisely, the balance command shows the change to each account's
|
||||||
balance caused by all (matched) postings. In the common case where you
|
balance caused by all (matched) postings. In the common case where you
|
||||||
do not filter by date and your journal sets the correct opening bal-
|
do not filter by date and your journal sets the correct opening bal-
|
||||||
ances, this is the same as the account's ending balance.
|
ances, this is the same as the account's ending balance.
|
||||||
|
|
||||||
By default, accounts are displayed hierarchically, with subaccounts
|
By default, accounts are displayed hierarchically, with subaccounts
|
||||||
indented below their parent. "Boring" accounts, which contain a single
|
indented below their parent. "Boring" accounts, which contain a single
|
||||||
interesting subaccount and no balance of their own, are elided into the
|
interesting subaccount and no balance of their own, are elided into the
|
||||||
following line for more compact output. (Use --no-elide to prevent
|
following line for more compact output. (Use --no-elide to prevent
|
||||||
this. Eliding of boring accounts is not yet supported in multicolumn
|
this. Eliding of boring accounts is not yet supported in multicolumn
|
||||||
reports.)
|
reports.)
|
||||||
|
|
||||||
Each account's balance is the "inclusive" balance - it includes the
|
Each account's balance is the "inclusive" balance - it includes the
|
||||||
balances of any subaccounts.
|
balances of any subaccounts.
|
||||||
|
|
||||||
Accounts which have zero balance (and no non-zero subaccounts) are
|
Accounts which have zero balance (and no non-zero subaccounts) are
|
||||||
omitted. Use -E/--empty to show them.
|
omitted. Use -E/--empty to show them.
|
||||||
|
|
||||||
A final total is displayed by default; use -N/--no-total to suppress
|
A final total is displayed by default; use -N/--no-total to suppress
|
||||||
it:
|
it:
|
||||||
|
|
||||||
$ hledger balance -p 2008/6 expenses --no-total
|
$ hledger balance -p 2008/6 expenses --no-total
|
||||||
@ -956,9 +955,9 @@ COMMANDS
|
|||||||
|
|
||||||
Flat mode
|
Flat mode
|
||||||
To see a flat list of full account names instead of the default hierar-
|
To see a flat list of full account names instead of the default hierar-
|
||||||
chical display, use --flat. In this mode, accounts (unless
|
chical display, use --flat. In this mode, accounts (unless
|
||||||
depth-clipped) show their "exclusive" balance, excluding any subaccount
|
depth-clipped) show their "exclusive" balance, excluding any subaccount
|
||||||
balances. In this mode, you can also use --drop N to omit the first
|
balances. In this mode, you can also use --drop N to omit the first
|
||||||
few account name components.
|
few account name components.
|
||||||
|
|
||||||
$ hledger balance -p 2008/6 expenses -N --flat --drop 1
|
$ hledger balance -p 2008/6 expenses -N --flat --drop 1
|
||||||
@ -966,9 +965,9 @@ COMMANDS
|
|||||||
$1 supplies
|
$1 supplies
|
||||||
|
|
||||||
Depth limited balance reports
|
Depth limited balance reports
|
||||||
With --depth N, balance shows accounts only to the specified depth.
|
With --depth N, balance shows accounts only to the specified depth.
|
||||||
This is very useful to show a complex charts of accounts in less
|
This is very useful to show a complex charts of accounts in less
|
||||||
detail. In flat mode, balances from accounts below the depth limit
|
detail. In flat mode, balances from accounts below the depth limit
|
||||||
will be shown as part of a parent account at the depth limit.
|
will be shown as part of a parent account at the depth limit.
|
||||||
|
|
||||||
$ hledger balance -N --depth 1
|
$ hledger balance -N --depth 1
|
||||||
@ -978,12 +977,12 @@ COMMANDS
|
|||||||
$1 liabilities
|
$1 liabilities
|
||||||
|
|
||||||
Multicolumn balance reports
|
Multicolumn balance reports
|
||||||
With a reporting interval, multiple balance columns will be shown, one
|
With a reporting interval, multiple balance columns will be shown, one
|
||||||
for each report period. There are three types of multi-column balance
|
for each report period. There are three types of multi-column balance
|
||||||
report, showing different information:
|
report, showing different information:
|
||||||
|
|
||||||
1. By default: each column shows the sum of postings in that period, ie
|
1. By default: each column shows the sum of postings in that period, ie
|
||||||
the account's change of balance in that period. This is useful eg
|
the account's change of balance in that period. This is useful eg
|
||||||
for a monthly income statement:
|
for a monthly income statement:
|
||||||
|
|
||||||
$ hledger balance --quarterly income expenses -E
|
$ hledger balance --quarterly income expenses -E
|
||||||
@ -998,8 +997,8 @@ COMMANDS
|
|||||||
-------------------++---------------------------------
|
-------------------++---------------------------------
|
||||||
|| $-1 $1 0 0
|
|| $-1 $1 0 0
|
||||||
|
|
||||||
2. With --cumulative: each column shows the ending balance for that
|
2. With --cumulative: each column shows the ending balance for that
|
||||||
period, accumulating the changes across periods, starting from 0 at
|
period, accumulating the changes across periods, starting from 0 at
|
||||||
the report start date:
|
the report start date:
|
||||||
|
|
||||||
$ hledger balance --quarterly income expenses -E --cumulative
|
$ hledger balance --quarterly income expenses -E --cumulative
|
||||||
@ -1015,8 +1014,8 @@ COMMANDS
|
|||||||
|| $-1 0 0 0
|
|| $-1 0 0 0
|
||||||
|
|
||||||
3. With --historical/-H: each column shows the actual historical ending
|
3. With --historical/-H: each column shows the actual historical ending
|
||||||
balance for that period, accumulating the changes across periods,
|
balance for that period, accumulating the changes across periods,
|
||||||
starting from the actual balance at the report start date. This is
|
starting from the actual balance at the report start date. This is
|
||||||
useful eg for a multi-period balance sheet, and when you are showing
|
useful eg for a multi-period balance sheet, and when you are showing
|
||||||
only the data after a certain start date:
|
only the data after a certain start date:
|
||||||
|
|
||||||
@ -1032,26 +1031,26 @@ COMMANDS
|
|||||||
----------------------++-------------------------------------
|
----------------------++-------------------------------------
|
||||||
|| 0 0 0
|
|| 0 0 0
|
||||||
|
|
||||||
Multi-column balance reports display accounts in flat mode by default;
|
Multi-column balance reports display accounts in flat mode by default;
|
||||||
to see the hierarchy, use --tree.
|
to see the hierarchy, use --tree.
|
||||||
|
|
||||||
With a reporting interval (like --quarterly above), the report
|
With a reporting interval (like --quarterly above), the report
|
||||||
start/end dates will be adjusted if necessary so that they encompass
|
start/end dates will be adjusted if necessary so that they encompass
|
||||||
the displayed report periods. This is so that the first and last peri-
|
the displayed report periods. This is so that the first and last peri-
|
||||||
ods will be "full" and comparable to the others.
|
ods will be "full" and comparable to the others.
|
||||||
|
|
||||||
The -E/--empty flag does two things in multicolumn balance reports:
|
The -E/--empty flag does two things in multicolumn balance reports:
|
||||||
first, the report will show all columns within the specified report
|
first, the report will show all columns within the specified report
|
||||||
period (without -E, leading and trailing columns with all zeroes are
|
period (without -E, leading and trailing columns with all zeroes are
|
||||||
not shown). Second, all accounts which existed at the report start
|
not shown). Second, all accounts which existed at the report start
|
||||||
date will be considered, not just the ones with activity during the
|
date will be considered, not just the ones with activity during the
|
||||||
report period (use -E to include low-activity accounts which would oth-
|
report period (use -E to include low-activity accounts which would oth-
|
||||||
erwise would be omitted).
|
erwise would be omitted).
|
||||||
|
|
||||||
The -T/--row-total flag adds an additional column showing the total for
|
The -T/--row-total flag adds an additional column showing the total for
|
||||||
each row.
|
each row.
|
||||||
|
|
||||||
The -A/--average flag adds a column showing the average value in each
|
The -A/--average flag adds a column showing the average value in each
|
||||||
row.
|
row.
|
||||||
|
|
||||||
Here's an example of all three:
|
Here's an example of all three:
|
||||||
@ -1073,7 +1072,7 @@ COMMANDS
|
|||||||
# Average is rounded to the dollar here since all journal amounts are
|
# Average is rounded to the dollar here since all journal amounts are
|
||||||
|
|
||||||
Custom balance output
|
Custom balance output
|
||||||
In simple (non-multi-column) balance reports, you can customise the
|
In simple (non-multi-column) balance reports, you can customise the
|
||||||
output with --format FMT:
|
output with --format FMT:
|
||||||
|
|
||||||
$ hledger balance --format "%20(account) %12(total)"
|
$ hledger balance --format "%20(account) %12(total)"
|
||||||
@ -1091,7 +1090,7 @@ COMMANDS
|
|||||||
0
|
0
|
||||||
|
|
||||||
The FMT format string (plus a newline) specifies the formatting applied
|
The FMT format string (plus a newline) specifies the formatting applied
|
||||||
to each account/balance pair. It may contain any suitable text, with
|
to each account/balance pair. It may contain any suitable text, with
|
||||||
data fields interpolated like so:
|
data fields interpolated like so:
|
||||||
|
|
||||||
%[MIN][.MAX](FIELDNAME)
|
%[MIN][.MAX](FIELDNAME)
|
||||||
@ -1102,14 +1101,14 @@ COMMANDS
|
|||||||
|
|
||||||
o FIELDNAME must be enclosed in parentheses, and can be one of:
|
o FIELDNAME must be enclosed in parentheses, and can be one of:
|
||||||
|
|
||||||
o depth_spacer - a number of spaces equal to the account's depth, or
|
o depth_spacer - a number of spaces equal to the account's depth, or
|
||||||
if MIN is specified, MIN * depth spaces.
|
if MIN is specified, MIN * depth spaces.
|
||||||
|
|
||||||
o account - the account's name
|
o account - the account's name
|
||||||
|
|
||||||
o total - the account's balance/posted total, right justified
|
o total - the account's balance/posted total, right justified
|
||||||
|
|
||||||
Also, FMT can begin with an optional prefix to control how multi-com-
|
Also, FMT can begin with an optional prefix to control how multi-com-
|
||||||
modity amounts are rendered:
|
modity amounts are rendered:
|
||||||
|
|
||||||
o %_ - render on multiple lines, bottom-aligned (the default)
|
o %_ - render on multiple lines, bottom-aligned (the default)
|
||||||
@ -1118,7 +1117,7 @@ COMMANDS
|
|||||||
|
|
||||||
o %, - render on one line, comma-separated
|
o %, - render on one line, comma-separated
|
||||||
|
|
||||||
There are some quirks. Eg in one-line mode, %(depth_spacer) has no
|
There are some quirks. Eg in one-line mode, %(depth_spacer) has no
|
||||||
effect, instead %(account) has indentation built in.
|
effect, instead %(account) has indentation built in.
|
||||||
Experimentation may be needed to get pleasing results.
|
Experimentation may be needed to get pleasing results.
|
||||||
|
|
||||||
@ -1126,14 +1125,14 @@ COMMANDS
|
|||||||
|
|
||||||
o %(total) - the account's total
|
o %(total) - the account's total
|
||||||
|
|
||||||
o %-20.20(account) - the account's name, left justified, padded to 20
|
o %-20.20(account) - the account's name, left justified, padded to 20
|
||||||
characters and clipped at 20 characters
|
characters and clipped at 20 characters
|
||||||
|
|
||||||
o %,%-50(account) %25(total) - account name padded to 50 characters,
|
o %,%-50(account) %25(total) - account name padded to 50 characters,
|
||||||
total padded to 20 characters, with multiple commodities rendered on
|
total padded to 20 characters, with multiple commodities rendered on
|
||||||
one line
|
one line
|
||||||
|
|
||||||
o %20(total) %2(depth_spacer)%-(account) - the default format for the
|
o %20(total) %2(depth_spacer)%-(account) - the default format for the
|
||||||
single-column balance report
|
single-column balance report
|
||||||
|
|
||||||
Colour support
|
Colour support
|
||||||
@ -1144,8 +1143,8 @@ COMMANDS
|
|||||||
o the output is not being redirected or piped anywhere
|
o the output is not being redirected or piped anywhere
|
||||||
|
|
||||||
Output destination
|
Output destination
|
||||||
The balance, print, register and stats commands can write their output
|
The balance, print, register and stats commands can write their output
|
||||||
to a destination other than the console. This is controlled by the
|
to a destination other than the console. This is controlled by the
|
||||||
-o/--output-file option.
|
-o/--output-file option.
|
||||||
|
|
||||||
$ hledger balance -o - # write to stdout (the default)
|
$ hledger balance -o - # write to stdout (the default)
|
||||||
@ -1153,8 +1152,8 @@ COMMANDS
|
|||||||
|
|
||||||
CSV output
|
CSV output
|
||||||
The balance, print and register commands can write their output as CSV.
|
The balance, print and register commands can write their output as CSV.
|
||||||
This is useful for exporting data to other applications, eg to make
|
This is useful for exporting data to other applications, eg to make
|
||||||
charts in a spreadsheet. This is controlled by the -O/--output-format
|
charts in a spreadsheet. This is controlled by the -O/--output-format
|
||||||
option, or by specifying a .csv file extension with -o/--output-file.
|
option, or by specifying a .csv file extension with -o/--output-file.
|
||||||
|
|
||||||
$ hledger balance -O csv # write CSV to stdout
|
$ hledger balance -O csv # write CSV to stdout
|
||||||
@ -1168,7 +1167,7 @@ COMMANDS
|
|||||||
balances
|
balances
|
||||||
|
|
||||||
--cumulative
|
--cumulative
|
||||||
show balance change accumulated across periods (in multicolumn
|
show balance change accumulated across periods (in multicolumn
|
||||||
reports), instead of historical ending balances
|
reports), instead of historical ending balances
|
||||||
|
|
||||||
-H --historical
|
-H --historical
|
||||||
@ -1199,8 +1198,8 @@ COMMANDS
|
|||||||
--format=LINEFORMAT
|
--format=LINEFORMAT
|
||||||
in single-column balance reports: use this custom line format
|
in single-column balance reports: use this custom line format
|
||||||
|
|
||||||
This command displays a simple balance sheet. It currently assumes
|
This command displays a simple balance sheet. It currently assumes
|
||||||
that you have top-level accounts named asset and liability (plural
|
that you have top-level accounts named asset and liability (plural
|
||||||
forms also allowed.)
|
forms also allowed.)
|
||||||
|
|
||||||
$ hledger balancesheet
|
$ hledger balancesheet
|
||||||
@ -1223,9 +1222,9 @@ COMMANDS
|
|||||||
0
|
0
|
||||||
|
|
||||||
With a reporting interval, multiple columns will be shown, one for each
|
With a reporting interval, multiple columns will be shown, one for each
|
||||||
report period. As with multicolumn balance reports, you can alter the
|
report period. As with multicolumn balance reports, you can alter the
|
||||||
report mode with --change/--cumulative/--historical. Normally bal-
|
report mode with --change/--cumulative/--historical. Normally bal-
|
||||||
ancesheet shows historical ending balances, which is what you need for
|
ancesheet shows historical ending balances, which is what you need for
|
||||||
a balance sheet; note this means it ignores report begin dates.
|
a balance sheet; note this means it ignores report begin dates.
|
||||||
|
|
||||||
cashflow
|
cashflow
|
||||||
@ -1235,7 +1234,7 @@ COMMANDS
|
|||||||
show balance change in each period (default)
|
show balance change in each period (default)
|
||||||
|
|
||||||
--cumulative
|
--cumulative
|
||||||
show balance change accumulated across periods (in multicolumn
|
show balance change accumulated across periods (in multicolumn
|
||||||
reports), instead of changes during periods
|
reports), instead of changes during periods
|
||||||
|
|
||||||
-H --historical
|
-H --historical
|
||||||
@ -1266,9 +1265,9 @@ COMMANDS
|
|||||||
--format=LINEFORMAT
|
--format=LINEFORMAT
|
||||||
in single-column balance reports: use this custom line format
|
in single-column balance reports: use this custom line format
|
||||||
|
|
||||||
This command displays a simple cashflow statement It shows the change
|
This command displays a simple cashflow statement It shows the change
|
||||||
in all "cash" (ie, liquid assets) accounts for the period. It cur-
|
in all "cash" (ie, liquid assets) accounts for the period. It cur-
|
||||||
rently assumes that cash accounts are under a top-level account named
|
rently assumes that cash accounts are under a top-level account named
|
||||||
asset and do not contain receivable or A/R (plural forms also allowed.)
|
asset and do not contain receivable or A/R (plural forms also allowed.)
|
||||||
|
|
||||||
$ hledger cashflow
|
$ hledger cashflow
|
||||||
@ -1286,18 +1285,18 @@ COMMANDS
|
|||||||
$-1
|
$-1
|
||||||
|
|
||||||
With a reporting interval, multiple columns will be shown, one for each
|
With a reporting interval, multiple columns will be shown, one for each
|
||||||
report period. Normally cashflow shows changes in assets per period,
|
report period. Normally cashflow shows changes in assets per period,
|
||||||
though as with multicolumn balance reports you can alter the report
|
though as with multicolumn balance reports you can alter the report
|
||||||
mode with --change/--cumulative/--historical.
|
mode with --change/--cumulative/--historical.
|
||||||
|
|
||||||
help
|
help
|
||||||
Show any of the hledger manuals.
|
Show any of the hledger manuals.
|
||||||
|
|
||||||
The help command displays any of the main hledger man pages. (Unlike
|
The help command displays any of the main hledger man pages. (Unlike
|
||||||
hledger --help, which displays only the hledger man page.) Run it with
|
hledger --help, which displays only the hledger man page.) Run it with
|
||||||
no arguments to list available topics (their names are shortened for
|
no arguments to list available topics (their names are shortened for
|
||||||
easier typing), and run hledger help TOPIC to select one. The output
|
easier typing), and run hledger help TOPIC to select one. The output
|
||||||
is similar to a man page, but fixed width. It may be long, so you may
|
is similar to a man page, but fixed width. It may be long, so you may
|
||||||
wish to pipe it into a pager. See also info and man.
|
wish to pipe it into a pager. See also info and man.
|
||||||
|
|
||||||
$ hledger help
|
$ hledger help
|
||||||
@ -1325,7 +1324,7 @@ COMMANDS
|
|||||||
show balance change in each period (default)
|
show balance change in each period (default)
|
||||||
|
|
||||||
--cumulative
|
--cumulative
|
||||||
show balance change accumulated across periods (in multicolumn
|
show balance change accumulated across periods (in multicolumn
|
||||||
reports), instead of changes during periods
|
reports), instead of changes during periods
|
||||||
|
|
||||||
-H --historical
|
-H --historical
|
||||||
@ -1356,8 +1355,8 @@ COMMANDS
|
|||||||
--format=LINEFORMAT
|
--format=LINEFORMAT
|
||||||
in single-column balance reports: use this custom line format
|
in single-column balance reports: use this custom line format
|
||||||
|
|
||||||
This command displays a simple income statement. It currently assumes
|
This command displays a simple income statement. It currently assumes
|
||||||
that you have top-level accounts named income (or revenue) and expense
|
that you have top-level accounts named income (or revenue) and expense
|
||||||
(plural forms also allowed.)
|
(plural forms also allowed.)
|
||||||
|
|
||||||
$ hledger incomestatement
|
$ hledger incomestatement
|
||||||
@ -1382,30 +1381,30 @@ COMMANDS
|
|||||||
0
|
0
|
||||||
|
|
||||||
With a reporting interval, multiple columns will be shown, one for each
|
With a reporting interval, multiple columns will be shown, one for each
|
||||||
report period. Normally incomestatement shows revenues/expenses per
|
report period. Normally incomestatement shows revenues/expenses per
|
||||||
period, though as with multicolumn balance reports you can alter the
|
period, though as with multicolumn balance reports you can alter the
|
||||||
report mode with --change/--cumulative/--historical.
|
report mode with --change/--cumulative/--historical.
|
||||||
|
|
||||||
info
|
info
|
||||||
Show any of the hledger manuals using info.
|
Show any of the hledger manuals using info.
|
||||||
|
|
||||||
The info command displays any of the hledger reference manuals using
|
The info command displays any of the hledger reference manuals using
|
||||||
the info hypertextual documentation viewer. This can be a very effi-
|
the info hypertextual documentation viewer. This can be a very effi-
|
||||||
cient way to browse large manuals. It requires the "info" program to
|
cient way to browse large manuals. It requires the "info" program to
|
||||||
be available in your PATH.
|
be available in your PATH.
|
||||||
|
|
||||||
As with help, run it with no arguments to list available topics (manu-
|
As with help, run it with no arguments to list available topics (manu-
|
||||||
als).
|
als).
|
||||||
|
|
||||||
man
|
man
|
||||||
Show any of the hledger manuals using man.
|
Show any of the hledger manuals using man.
|
||||||
|
|
||||||
The man command displays any of the hledger reference manuals using
|
The man command displays any of the hledger reference manuals using
|
||||||
man, the standard documentation viewer on unix systems. This will fit
|
man, the standard documentation viewer on unix systems. This will fit
|
||||||
the text to your terminal width, and probably invoke a pager automati-
|
the text to your terminal width, and probably invoke a pager automati-
|
||||||
cally. It requires the "man" program to be available in your PATH.
|
cally. It requires the "man" program to be available in your PATH.
|
||||||
|
|
||||||
As with help, run it with no arguments to list available topics (manu-
|
As with help, run it with no arguments to list available topics (manu-
|
||||||
als).
|
als).
|
||||||
|
|
||||||
print
|
print
|
||||||
@ -1415,14 +1414,14 @@ COMMANDS
|
|||||||
show all amounts explicitly
|
show all amounts explicitly
|
||||||
|
|
||||||
-m STR --match=STR
|
-m STR --match=STR
|
||||||
show the transaction whose description is most similar to STR,
|
show the transaction whose description is most similar to STR,
|
||||||
and is most recent
|
and is most recent
|
||||||
|
|
||||||
-O FMT --output-format=FMT
|
-O FMT --output-format=FMT
|
||||||
select the output format. Supported formats: txt, csv.
|
select the output format. Supported formats: txt, csv.
|
||||||
|
|
||||||
-o FILE --output-file=FILE
|
-o FILE --output-file=FILE
|
||||||
write output to FILE. A file extension matching one of the
|
write output to FILE. A file extension matching one of the
|
||||||
above formats selects that format.
|
above formats selects that format.
|
||||||
|
|
||||||
$ hledger print
|
$ hledger print
|
||||||
@ -1450,23 +1449,23 @@ COMMANDS
|
|||||||
The print command displays full journal entries (transactions) from the
|
The print command displays full journal entries (transactions) from the
|
||||||
journal file, tidily formatted.
|
journal file, tidily formatted.
|
||||||
|
|
||||||
As of hledger 1.2, print's output is always a valid hledger journal.
|
As of hledger 1.2, print's output is always a valid hledger journal.
|
||||||
However it may not preserve all original content, eg it does not print
|
However it may not preserve all original content, eg it does not print
|
||||||
directives or inter-transaction comments.
|
directives or inter-transaction comments.
|
||||||
|
|
||||||
Normally, transactions' implicit/explicit amount style is preserved:
|
Normally, transactions' implicit/explicit amount style is preserved:
|
||||||
when an amount is omitted in the journal, it will be omitted in the
|
when an amount is omitted in the journal, it will be omitted in the
|
||||||
output. You can use the -x/--explicit flag to make all amounts
|
output. You can use the -x/--explicit flag to make all amounts
|
||||||
explicit, which can be useful for troubleshooting or for making your
|
explicit, which can be useful for troubleshooting or for making your
|
||||||
journal more readable and robust against data entry errors. Note, in
|
journal more readable and robust against data entry errors. Note, in
|
||||||
this mode postings with a multi-commodity amount (possible with an
|
this mode postings with a multi-commodity amount (possible with an
|
||||||
implicit amount in a multi-commodity transaction) will be split into
|
implicit amount in a multi-commodity transaction) will be split into
|
||||||
multiple single-commodity postings, for valid journal output.
|
multiple single-commodity postings, for valid journal output.
|
||||||
|
|
||||||
With -B/--cost, amounts with transaction prices are converted to cost
|
With -B/--cost, amounts with transaction prices are converted to cost
|
||||||
(using the transaction price).
|
(using the transaction price).
|
||||||
|
|
||||||
The print command also supports output destination and CSV output.
|
The print command also supports output destination and CSV output.
|
||||||
Here's an example of print's CSV output:
|
Here's an example of print's CSV output:
|
||||||
|
|
||||||
$ hledger print -Ocsv
|
$ hledger print -Ocsv
|
||||||
@ -1483,20 +1482,20 @@ COMMANDS
|
|||||||
"5","2008/12/31","","*","","pay off","","liabilities:debts","1","$","","1","",""
|
"5","2008/12/31","","*","","pay off","","liabilities:debts","1","$","","1","",""
|
||||||
"5","2008/12/31","","*","","pay off","","assets:bank:checking","-1","$","1","","",""
|
"5","2008/12/31","","*","","pay off","","assets:bank:checking","-1","$","1","","",""
|
||||||
|
|
||||||
o There is one CSV record per posting, with the parent transaction's
|
o There is one CSV record per posting, with the parent transaction's
|
||||||
fields repeated.
|
fields repeated.
|
||||||
|
|
||||||
o The "txnidx" (transaction index) field shows which postings belong to
|
o The "txnidx" (transaction index) field shows which postings belong to
|
||||||
the same transaction. (This number might change if transactions are
|
the same transaction. (This number might change if transactions are
|
||||||
reordered within the file, files are parsed/included in a different
|
reordered within the file, files are parsed/included in a different
|
||||||
order, etc.)
|
order, etc.)
|
||||||
|
|
||||||
o The amount is separated into "commodity" (the symbol) and "amount"
|
o The amount is separated into "commodity" (the symbol) and "amount"
|
||||||
(numeric quantity) fields.
|
(numeric quantity) fields.
|
||||||
|
|
||||||
o The numeric amount is repeated in either the "credit" or "debit" col-
|
o The numeric amount is repeated in either the "credit" or "debit" col-
|
||||||
umn, for convenience. (Those names are not accurate in the account-
|
umn, for convenience. (Those names are not accurate in the account-
|
||||||
ing sense; it just puts negative amounts under credit and zero or
|
ing sense; it just puts negative amounts under credit and zero or
|
||||||
greater amounts under debit.)
|
greater amounts under debit.)
|
||||||
|
|
||||||
register
|
register
|
||||||
@ -1506,7 +1505,7 @@ COMMANDS
|
|||||||
show running total from report start date (default)
|
show running total from report start date (default)
|
||||||
|
|
||||||
-H --historical
|
-H --historical
|
||||||
show historical running total/balance (includes postings before
|
show historical running total/balance (includes postings before
|
||||||
report start date)
|
report start date)
|
||||||
|
|
||||||
-A --average
|
-A --average
|
||||||
@ -1517,18 +1516,18 @@ COMMANDS
|
|||||||
show postings' siblings instead
|
show postings' siblings instead
|
||||||
|
|
||||||
-w N --width=N
|
-w N --width=N
|
||||||
set output width (default: terminal width or COLUMNS. -wN,M
|
set output width (default: terminal width or COLUMNS. -wN,M
|
||||||
sets description width as well)
|
sets description width as well)
|
||||||
|
|
||||||
-O FMT --output-format=FMT
|
-O FMT --output-format=FMT
|
||||||
select the output format. Supported formats: txt, csv.
|
select the output format. Supported formats: txt, csv.
|
||||||
|
|
||||||
-o FILE --output-file=FILE
|
-o FILE --output-file=FILE
|
||||||
write output to FILE. A file extension matching one of the
|
write output to FILE. A file extension matching one of the
|
||||||
above formats selects that format.
|
above formats selects that format.
|
||||||
|
|
||||||
The register command displays postings, one per line, and their running
|
The register command displays postings, one per line, and their running
|
||||||
total. This is typically used with a query selecting a particular
|
total. This is typically used with a query selecting a particular
|
||||||
account, to see that account's activity:
|
account, to see that account's activity:
|
||||||
|
|
||||||
$ hledger register checking
|
$ hledger register checking
|
||||||
@ -1537,8 +1536,8 @@ COMMANDS
|
|||||||
2008/06/02 save assets:bank:checking $-1 $1
|
2008/06/02 save assets:bank:checking $-1 $1
|
||||||
2008/12/31 pay off assets:bank:checking $-1 0
|
2008/12/31 pay off assets:bank:checking $-1 0
|
||||||
|
|
||||||
The --historical/-H flag adds the balance from any undisplayed prior
|
The --historical/-H flag adds the balance from any undisplayed prior
|
||||||
postings to the running total. This is useful when you want to see
|
postings to the running total. This is useful when you want to see
|
||||||
only recent activity, with a historically accurate running balance:
|
only recent activity, with a historically accurate running balance:
|
||||||
|
|
||||||
$ hledger register checking -b 2008/6 --historical
|
$ hledger register checking -b 2008/6 --historical
|
||||||
@ -1548,23 +1547,23 @@ COMMANDS
|
|||||||
|
|
||||||
The --depth option limits the amount of sub-account detail displayed.
|
The --depth option limits the amount of sub-account detail displayed.
|
||||||
|
|
||||||
The --average/-A flag shows the running average posting amount instead
|
The --average/-A flag shows the running average posting amount instead
|
||||||
of the running total (so, the final number displayed is the average for
|
of the running total (so, the final number displayed is the average for
|
||||||
the whole report period). This flag implies --empty (see below). It
|
the whole report period). This flag implies --empty (see below). It
|
||||||
is affected by --historical. It works best when showing just one
|
is affected by --historical. It works best when showing just one
|
||||||
account and one commodity.
|
account and one commodity.
|
||||||
|
|
||||||
The --related/-r flag shows the other postings in the transactions of
|
The --related/-r flag shows the other postings in the transactions of
|
||||||
the postings which would normally be shown.
|
the postings which would normally be shown.
|
||||||
|
|
||||||
With a reporting interval, register shows summary postings, one per
|
With a reporting interval, register shows summary postings, one per
|
||||||
interval, aggregating the postings to each account:
|
interval, aggregating the postings to each account:
|
||||||
|
|
||||||
$ hledger register --monthly income
|
$ hledger register --monthly income
|
||||||
2008/01 income:salary $-1 $-1
|
2008/01 income:salary $-1 $-1
|
||||||
2008/06 income:gifts $-1 $-2
|
2008/06 income:gifts $-1 $-2
|
||||||
|
|
||||||
Periods with no activity, and summary postings with a zero amount, are
|
Periods with no activity, and summary postings with a zero amount, are
|
||||||
not shown by default; use the --empty/-E flag to see them:
|
not shown by default; use the --empty/-E flag to see them:
|
||||||
|
|
||||||
$ hledger register --monthly income -E
|
$ hledger register --monthly income -E
|
||||||
@ -1581,7 +1580,7 @@ COMMANDS
|
|||||||
2008/11 0 $-2
|
2008/11 0 $-2
|
||||||
2008/12 0 $-2
|
2008/12 0 $-2
|
||||||
|
|
||||||
Often, you'll want to see just one line per interval. The --depth
|
Often, you'll want to see just one line per interval. The --depth
|
||||||
option helps with this, causing subaccounts to be aggregated:
|
option helps with this, causing subaccounts to be aggregated:
|
||||||
|
|
||||||
$ hledger register --monthly assets --depth 1h
|
$ hledger register --monthly assets --depth 1h
|
||||||
@ -1589,19 +1588,19 @@ COMMANDS
|
|||||||
2008/06 assets $-1 0
|
2008/06 assets $-1 0
|
||||||
2008/12 assets $-1 $-1
|
2008/12 assets $-1 $-1
|
||||||
|
|
||||||
Note when using report intervals, if you specify start/end dates these
|
Note when using report intervals, if you specify start/end dates these
|
||||||
will be adjusted outward if necessary to contain a whole number of
|
will be adjusted outward if necessary to contain a whole number of
|
||||||
intervals. This ensures that the first and last intervals are full
|
intervals. This ensures that the first and last intervals are full
|
||||||
length and comparable to the others in the report.
|
length and comparable to the others in the report.
|
||||||
|
|
||||||
Custom register output
|
Custom register output
|
||||||
register uses the full terminal width by default, except on windows.
|
register uses the full terminal width by default, except on windows.
|
||||||
You can override this by setting the COLUMNS environment variable (not
|
You can override this by setting the COLUMNS environment variable (not
|
||||||
a bash shell variable) or by using the --width/-w option.
|
a bash shell variable) or by using the --width/-w option.
|
||||||
|
|
||||||
The description and account columns normally share the space equally
|
The description and account columns normally share the space equally
|
||||||
(about half of (width - 40) each). You can adjust this by adding a
|
(about half of (width - 40) each). You can adjust this by adding a
|
||||||
description width as part of --width's argument, comma-separated:
|
description width as part of --width's argument, comma-separated:
|
||||||
--width W,D . Here's a diagram:
|
--width W,D . Here's a diagram:
|
||||||
|
|
||||||
<--------------------------------- width (W) ---------------------------------->
|
<--------------------------------- width (W) ---------------------------------->
|
||||||
@ -1617,14 +1616,14 @@ COMMANDS
|
|||||||
$ hledger reg -w 100,40 # set overall width 100, description width 40
|
$ hledger reg -w 100,40 # set overall width 100, description width 40
|
||||||
$ hledger reg -w $COLUMNS,40 # use terminal width, and set description width
|
$ hledger reg -w $COLUMNS,40 # use terminal width, and set description width
|
||||||
|
|
||||||
The register command also supports the -o/--output-file and -O/--out-
|
The register command also supports the -o/--output-file and -O/--out-
|
||||||
put-format options for controlling output destination and CSV output.
|
put-format options for controlling output destination and CSV output.
|
||||||
|
|
||||||
stats
|
stats
|
||||||
Show some journal statistics.
|
Show some journal statistics.
|
||||||
|
|
||||||
-o FILE --output-file=FILE
|
-o FILE --output-file=FILE
|
||||||
write output to FILE. A file extension matching one of the
|
write output to FILE. A file extension matching one of the
|
||||||
above formats selects that format.
|
above formats selects that format.
|
||||||
|
|
||||||
$ hledger stats
|
$ hledger stats
|
||||||
@ -1639,8 +1638,8 @@ COMMANDS
|
|||||||
Accounts : 8 (depth 3)
|
Accounts : 8 (depth 3)
|
||||||
Commodities : 1 ($)
|
Commodities : 1 ($)
|
||||||
|
|
||||||
The stats command displays summary information for the whole journal,
|
The stats command displays summary information for the whole journal,
|
||||||
or a matched part of it. With a reporting interval, it shows a report
|
or a matched part of it. With a reporting interval, it shows a report
|
||||||
for each report period.
|
for each report period.
|
||||||
|
|
||||||
The stats command also supports -o/--output-file for controlling output
|
The stats command also supports -o/--output-file for controlling output
|
||||||
@ -1652,34 +1651,34 @@ COMMANDS
|
|||||||
$ hledger test
|
$ hledger test
|
||||||
Cases: 74 Tried: 74 Errors: 0 Failures: 0
|
Cases: 74 Tried: 74 Errors: 0 Failures: 0
|
||||||
|
|
||||||
This command runs hledger's built-in unit tests and displays a quick
|
This command runs hledger's built-in unit tests and displays a quick
|
||||||
report. With a regular expression argument, it selects only tests with
|
report. With a regular expression argument, it selects only tests with
|
||||||
matching names. It's mainly used in development, but it's also nice to
|
matching names. It's mainly used in development, but it's also nice to
|
||||||
be able to check your hledger executable for smoke at any time.
|
be able to check your hledger executable for smoke at any time.
|
||||||
|
|
||||||
ADD-ON COMMANDS
|
ADD-ON COMMANDS
|
||||||
hledger also searches for external add-on commands, and will include
|
hledger also searches for external add-on commands, and will include
|
||||||
these in the commands list. These are programs or scripts in your PATH
|
these in the commands list. These are programs or scripts in your PATH
|
||||||
whose name starts with hledger- and ends with a recognised file exten-
|
whose name starts with hledger- and ends with a recognised file exten-
|
||||||
sion (currently: no extension, bat,com,exe, hs,lhs,pl,py,rb,rkt,sh).
|
sion (currently: no extension, bat,com,exe, hs,lhs,pl,py,rb,rkt,sh).
|
||||||
|
|
||||||
Add-ons can be invoked like any hledger command, but there are a few
|
Add-ons can be invoked like any hledger command, but there are a few
|
||||||
things to be aware of. Eg if the hledger-web add-on is installed,
|
things to be aware of. Eg if the hledger-web add-on is installed,
|
||||||
|
|
||||||
o hledger -h web shows hledger's help, while hledger web -h shows
|
o hledger -h web shows hledger's help, while hledger web -h shows
|
||||||
hledger-web's help.
|
hledger-web's help.
|
||||||
|
|
||||||
o Flags specific to the add-on must have a preceding -- to hide them
|
o Flags specific to the add-on must have a preceding -- to hide them
|
||||||
from hledger. So hledger web --serve --port 9000 will be rejected;
|
from hledger. So hledger web --serve --port 9000 will be rejected;
|
||||||
you must use hledger web -- --serve --port 9000.
|
you must use hledger web -- --serve --port 9000.
|
||||||
|
|
||||||
o You can always run add-ons directly if preferred:
|
o You can always run add-ons directly if preferred:
|
||||||
hledger-web --serve --port 9000.
|
hledger-web --serve --port 9000.
|
||||||
|
|
||||||
Add-ons are a relatively easy way to add local features or experiment
|
Add-ons are a relatively easy way to add local features or experiment
|
||||||
with new ideas. They can be written in any language, but haskell
|
with new ideas. They can be written in any language, but haskell
|
||||||
scripts have a big advantage: they can use the same hledger (and
|
scripts have a big advantage: they can use the same hledger (and
|
||||||
haskell) library functions that built-in commands do, for command-line
|
haskell) library functions that built-in commands do, for command-line
|
||||||
options, journal parsing, reporting, etc.
|
options, journal parsing, reporting, etc.
|
||||||
|
|
||||||
Here are some hledger add-ons available:
|
Here are some hledger add-ons available:
|
||||||
@ -1697,7 +1696,7 @@ ADD-ON COMMANDS
|
|||||||
hledger-web provides a simple web interface.
|
hledger-web provides a simple web interface.
|
||||||
|
|
||||||
Third party add-ons
|
Third party add-ons
|
||||||
These are maintained separately, and usually updated shortly after a
|
These are maintained separately, and usually updated shortly after a
|
||||||
hledger release.
|
hledger release.
|
||||||
|
|
||||||
diff
|
diff
|
||||||
@ -1705,7 +1704,7 @@ ADD-ON COMMANDS
|
|||||||
journal file and another.
|
journal file and another.
|
||||||
|
|
||||||
iadd
|
iadd
|
||||||
hledger-iadd is a curses-style, more interactive replacement for the
|
hledger-iadd is a curses-style, more interactive replacement for the
|
||||||
add command.
|
add command.
|
||||||
|
|
||||||
interest
|
interest
|
||||||
@ -1713,19 +1712,19 @@ ADD-ON COMMANDS
|
|||||||
ing to various schemes.
|
ing to various schemes.
|
||||||
|
|
||||||
irr
|
irr
|
||||||
hledger-irr calculates the internal rate of return of an investment
|
hledger-irr calculates the internal rate of return of an investment
|
||||||
account.
|
account.
|
||||||
|
|
||||||
Experimental add-ons
|
Experimental add-ons
|
||||||
These are available in source form in the hledger repo's bin/ direc-
|
These are available in source form in the hledger repo's bin/ direc-
|
||||||
tory; installing them is pretty easy. They may be less mature and doc-
|
tory; installing them is pretty easy. They may be less mature and doc-
|
||||||
umented than built-in commands. Reading and tweaking these is a good
|
umented than built-in commands. Reading and tweaking these is a good
|
||||||
way to start making your own!
|
way to start making your own!
|
||||||
|
|
||||||
autosync
|
autosync
|
||||||
hledger-autosync is a symbolic link for easily running ledger-autosync,
|
hledger-autosync is a symbolic link for easily running ledger-autosync,
|
||||||
if installed. ledger-autosync does deduplicating conversion of OFX
|
if installed. ledger-autosync does deduplicating conversion of OFX
|
||||||
data and some CSV formats, and can also download the data if your bank
|
data and some CSV formats, and can also download the data if your bank
|
||||||
offers OFX Direct Connect.
|
offers OFX Direct Connect.
|
||||||
|
|
||||||
budget
|
budget
|
||||||
@ -1741,18 +1740,18 @@ ADD-ON COMMANDS
|
|||||||
hledger-check-dates.hs checks that journal entries are ordered by date.
|
hledger-check-dates.hs checks that journal entries are ordered by date.
|
||||||
|
|
||||||
check-dupes
|
check-dupes
|
||||||
hledger-check-dupes.hs checks for account names sharing the same leaf
|
hledger-check-dupes.hs checks for account names sharing the same leaf
|
||||||
name.
|
name.
|
||||||
|
|
||||||
equity
|
equity
|
||||||
hledger-equity.hs prints balance-resetting transactions, useful for
|
hledger-equity.hs prints balance-resetting transactions, useful for
|
||||||
bringing account balances across file boundaries.
|
bringing account balances across file boundaries.
|
||||||
|
|
||||||
prices
|
prices
|
||||||
hledger-prices.hs prints all prices from the journal.
|
hledger-prices.hs prints all prices from the journal.
|
||||||
|
|
||||||
print-unique
|
print-unique
|
||||||
hledger-print-unique.hs prints transactions which do not reuse an
|
hledger-print-unique.hs prints transactions which do not reuse an
|
||||||
already-seen description.
|
already-seen description.
|
||||||
|
|
||||||
register-match
|
register-match
|
||||||
@ -1764,21 +1763,21 @@ ADD-ON COMMANDS
|
|||||||
tions.
|
tions.
|
||||||
|
|
||||||
ENVIRONMENT
|
ENVIRONMENT
|
||||||
COLUMNS The screen width used by the register command. Default: the
|
COLUMNS The screen width used by the register command. Default: the
|
||||||
full terminal width.
|
full terminal width.
|
||||||
|
|
||||||
LEDGER_FILE The journal file path when not specified with -f. Default:
|
LEDGER_FILE The journal file path when not specified with -f. Default:
|
||||||
~/.hledger.journal (on windows, perhaps C:/Users/USER/.hledger.jour-
|
~/.hledger.journal (on windows, perhaps C:/Users/USER/.hledger.jour-
|
||||||
nal).
|
nal).
|
||||||
|
|
||||||
FILES
|
FILES
|
||||||
Reads data from one or more files in hledger journal, timeclock, time-
|
Reads data from one or more files in hledger journal, timeclock, time-
|
||||||
dot, or CSV format specified with -f, or $LEDGER_FILE, or
|
dot, or CSV format specified with -f, or $LEDGER_FILE, or
|
||||||
$HOME/.hledger.journal (on windows, perhaps
|
$HOME/.hledger.journal (on windows, perhaps
|
||||||
C:/Users/USER/.hledger.journal).
|
C:/Users/USER/.hledger.journal).
|
||||||
|
|
||||||
BUGS
|
BUGS
|
||||||
The need to precede addon command options with -- when invoked from
|
The need to precede addon command options with -- when invoked from
|
||||||
hledger is awkward.
|
hledger is awkward.
|
||||||
|
|
||||||
When input data contains non-ascii characters, a suitable system locale
|
When input data contains non-ascii characters, a suitable system locale
|
||||||
@ -1791,33 +1790,33 @@ BUGS
|
|||||||
In a Cygwin/MSYS/Mintty window, the tab key is not supported in hledger
|
In a Cygwin/MSYS/Mintty window, the tab key is not supported in hledger
|
||||||
add.
|
add.
|
||||||
|
|
||||||
Not all of Ledger's journal file syntax is supported. See file format
|
Not all of Ledger's journal file syntax is supported. See file format
|
||||||
differences.
|
differences.
|
||||||
|
|
||||||
On large data files, hledger is slower and uses more memory than
|
On large data files, hledger is slower and uses more memory than
|
||||||
Ledger.
|
Ledger.
|
||||||
|
|
||||||
TROUBLESHOOTING
|
TROUBLESHOOTING
|
||||||
Here are some issues you might encounter when you run hledger (and
|
Here are some issues you might encounter when you run hledger (and
|
||||||
remember you can also seek help from the IRC channel, mail list or bug
|
remember you can also seek help from the IRC channel, mail list or bug
|
||||||
tracker):
|
tracker):
|
||||||
|
|
||||||
Successfully installed, but "No command 'hledger' found"
|
Successfully installed, but "No command 'hledger' found"
|
||||||
stack and cabal install binaries into a special directory, which should
|
stack and cabal install binaries into a special directory, which should
|
||||||
be added to your PATH environment variable. Eg on unix-like systems,
|
be added to your PATH environment variable. Eg on unix-like systems,
|
||||||
that is ~/.local/bin and ~/.cabal/bin respectively.
|
that is ~/.local/bin and ~/.cabal/bin respectively.
|
||||||
|
|
||||||
I set a custom LEDGER_FILE, but hledger is still using the default file
|
I set a custom LEDGER_FILE, but hledger is still using the default file
|
||||||
LEDGER_FILE should be a real environment variable, not just a shell
|
LEDGER_FILE should be a real environment variable, not just a shell
|
||||||
variable. The command env | grep LEDGER_FILE should show it. You may
|
variable. The command env | grep LEDGER_FILE should show it. You may
|
||||||
need to use export. Here's an explanation.
|
need to use export. Here's an explanation.
|
||||||
|
|
||||||
"Illegal byte sequence" or "Invalid or incomplete multibyte or wide
|
"Illegal byte sequence" or "Invalid or incomplete multibyte or wide
|
||||||
character" errors
|
character" errors
|
||||||
In order to handle non-ascii letters and symbols (like ), hledger needs
|
In order to handle non-ascii letters and symbols (like ), hledger needs
|
||||||
an appropriate locale. This is usually configured system-wide; you can
|
an appropriate locale. This is usually configured system-wide; you can
|
||||||
also configure it temporarily. The locale may need to be one that sup-
|
also configure it temporarily. The locale may need to be one that sup-
|
||||||
ports UTF-8, if you built hledger with GHC < 7.2 (or possibly always,
|
ports UTF-8, if you built hledger with GHC < 7.2 (or possibly always,
|
||||||
I'm not sure yet).
|
I'm not sure yet).
|
||||||
|
|
||||||
Here's an example of setting the locale temporarily, on ubuntu
|
Here's an example of setting the locale temporarily, on ubuntu
|
||||||
@ -1836,7 +1835,7 @@ TROUBLESHOOTING
|
|||||||
$ echo "export LANG=en_US.UTF-8" >>~/.bash_profile
|
$ echo "export LANG=en_US.UTF-8" >>~/.bash_profile
|
||||||
$ bash --login
|
$ bash --login
|
||||||
|
|
||||||
If we preferred to use eg fr_FR.utf8, we might have to install that
|
If we preferred to use eg fr_FR.utf8, we might have to install that
|
||||||
first:
|
first:
|
||||||
|
|
||||||
$ apt-get install language-pack-fr
|
$ apt-get install language-pack-fr
|
||||||
@ -1857,7 +1856,7 @@ TROUBLESHOOTING
|
|||||||
|
|
||||||
|
|
||||||
REPORTING BUGS
|
REPORTING BUGS
|
||||||
Report bugs at http://bugs.hledger.org (or on the #hledger IRC channel
|
Report bugs at http://bugs.hledger.org (or on the #hledger IRC channel
|
||||||
or hledger mail list)
|
or hledger mail list)
|
||||||
|
|
||||||
|
|
||||||
@ -1871,7 +1870,7 @@ COPYRIGHT
|
|||||||
|
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
hledger(1), hledger-ui(1), hledger-web(1), hledger-api(1),
|
hledger(1), hledger-ui(1), hledger-web(1), hledger-api(1),
|
||||||
hledger_csv(5), hledger_journal(5), hledger_timeclock(5), hledger_time-
|
hledger_csv(5), hledger_journal(5), hledger_timeclock(5), hledger_time-
|
||||||
dot(5), ledger(1)
|
dot(5), ledger(1)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user