2015-10-20 16:26:09 +03:00
|
|
|
|
2023-01-11 12:34:47 +03:00
|
|
|
.TH "HLEDGER-UI" "1" "January 2023" "hledger-ui-1.28.99 " "hledger User Manuals"
|
2015-10-20 16:26:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
.PP
|
2022-12-14 20:53:09 +03:00
|
|
|
hledger-ui - robust, friendly plain text accounting (TUI version)
|
2015-10-20 16:26:09 +03:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]hledger-ui [OPTIONS] [QUERYARGS]\f[R]
|
2015-10-20 16:26:09 +03:00
|
|
|
.PD 0
|
|
|
|
.P
|
|
|
|
.PD
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]hledger ui -- [OPTIONS] [QUERYARGS]\f[R]
|
2015-10-20 16:26:09 +03:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
2022-12-14 20:53:09 +03:00
|
|
|
This manual is for hledger\[aq]s terminal interface, version 1.28.99.
|
|
|
|
See also the hledger manual for common concepts and file formats.
|
|
|
|
.PP
|
2023-01-11 12:34:47 +03:00
|
|
|
hledger is a robust, user-friendly, cross-platform set of programs for
|
|
|
|
tracking money, time, or any other commodity, using double-entry
|
|
|
|
accounting and a simple, editable file format.
|
|
|
|
hledger is inspired by and largely compatible with ledger(1), and
|
|
|
|
largely interconvertible with beancount(1).
|
2016-04-18 05:28:16 +03:00
|
|
|
.PP
|
2019-09-13 18:26:49 +03:00
|
|
|
hledger-ui is hledger\[aq]s terminal interface, providing an efficient
|
|
|
|
full-window text UI for viewing accounts and transactions, and some
|
|
|
|
limited data entry capability.
|
2019-05-24 08:26:43 +03:00
|
|
|
It is easier than hledger\[aq]s command-line interface, and sometimes
|
2016-06-10 04:07:08 +03:00
|
|
|
quicker and more convenient than the web interface.
|
|
|
|
.PP
|
2023-01-11 12:34:47 +03:00
|
|
|
Like hledger, it reads data from one or more files in journal,
|
|
|
|
timeclock, timedot, or CSV format.
|
|
|
|
The default file is \f[V].hledger.journal\f[R] in your home directory;
|
|
|
|
this can be overridden with one or more \f[V]-f FILE\f[R] options, or
|
|
|
|
the \f[V]LEDGER_FILE\f[R] environment variable.
|
2016-06-10 04:07:08 +03:00
|
|
|
For more about this see hledger(1), hledger_journal(5) etc.
|
2020-02-22 22:33:50 +03:00
|
|
|
.PP
|
|
|
|
Unlike hledger, hledger-ui hides all future-dated transactions by
|
|
|
|
default.
|
|
|
|
They can be revealed, along with any rule-generated periodic
|
|
|
|
transactions, by pressing the F key (or starting with --forecast) to
|
|
|
|
enable \[dq]forecast mode\[dq].
|
2015-10-20 16:26:09 +03:00
|
|
|
.SH OPTIONS
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
Note: if invoking hledger-ui as a hledger subcommand, write \f[V]--\f[R]
|
2019-05-24 08:26:43 +03:00
|
|
|
before options as shown above.
|
2015-10-20 16:26:09 +03:00
|
|
|
.PP
|
|
|
|
Any QUERYARGS are interpreted as a hledger search query which filters
|
|
|
|
the data.
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-w --watch\f[R]
|
2017-01-06 04:18:13 +03:00
|
|
|
watch for data and date changes and reload automatically
|
2016-11-24 22:03:32 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--theme=default|terminal|greenterm\f[R]
|
2016-11-24 22:03:32 +03:00
|
|
|
use this custom display theme
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--menu\f[R]
|
2022-11-08 05:18:28 +03:00
|
|
|
start in the menu screen
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--all\f[R]
|
2022-11-08 05:18:28 +03:00
|
|
|
start in the all accounts screen
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--bs\f[R]
|
2022-11-08 05:18:28 +03:00
|
|
|
start in the balance sheet accounts screen
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--is\f[R]
|
2022-11-08 05:18:28 +03:00
|
|
|
start in the income statement accounts screen
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--register=ACCTREGEX\f[R]
|
2019-01-25 02:37:40 +03:00
|
|
|
start in the (first) matched account\[aq]s register screen
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--change\f[R]
|
2016-11-25 07:24:07 +03:00
|
|
|
show period balances (changes) at startup instead of historical balances
|
2016-11-24 22:32:13 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-l --flat\f[R]
|
2020-07-18 22:37:06 +03:00
|
|
|
show accounts as a flat list (default)
|
2018-10-17 23:14:52 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-t --tree\f[R]
|
2018-10-17 23:14:52 +03:00
|
|
|
show accounts as a tree
|
2016-06-03 19:38:06 +03:00
|
|
|
.PP
|
2017-03-30 00:35:59 +03:00
|
|
|
hledger input options:
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-f FILE --file=FILE\f[R]
|
2017-03-30 00:35:59 +03:00
|
|
|
use a different input file.
|
2022-12-01 23:24:23 +03:00
|
|
|
For stdin, use - (default: \f[V]$LEDGER_FILE\f[R] or
|
|
|
|
\f[V]$HOME/.hledger.journal\f[R])
|
2016-05-29 09:43:52 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--rules-file=RULESFILE\f[R]
|
2017-03-30 00:35:59 +03:00
|
|
|
Conversion rules file to use when reading CSV (default: FILE.rules)
|
2016-05-29 09:43:52 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--separator=CHAR\f[R]
|
2019-01-25 02:37:40 +03:00
|
|
|
Field separator to expect when reading CSV (default: \[aq],\[aq])
|
2018-09-07 22:44:17 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--alias=OLD=NEW\f[R]
|
2017-03-30 00:35:59 +03:00
|
|
|
rename accounts named OLD to NEW
|
2016-05-29 09:43:52 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--anon\f[R]
|
2017-03-30 00:35:59 +03:00
|
|
|
anonymize accounts and payees
|
2016-05-29 09:43:52 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--pivot FIELDNAME\f[R]
|
2017-09-05 21:44:02 +03:00
|
|
|
use some other field or tag for the account name
|
2016-05-29 09:43:52 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-I --ignore-assertions\f[R]
|
2020-01-05 18:04:00 +03:00
|
|
|
disable balance assertion checks (note: does not disable balance
|
|
|
|
assignments)
|
2020-11-26 19:52:56 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-s --strict\f[R]
|
2020-11-26 19:52:56 +03:00
|
|
|
do extra error checking (check that all posted accounts are declared)
|
2015-10-20 16:26:09 +03:00
|
|
|
.PP
|
2016-06-03 19:38:06 +03:00
|
|
|
hledger reporting options:
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-b --begin=DATE\f[R]
|
2021-05-18 23:48:42 +03:00
|
|
|
include postings/txns on or after this date (will be adjusted to
|
|
|
|
preceding subperiod start when using a report interval)
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-e --end=DATE\f[R]
|
2021-05-18 23:48:42 +03:00
|
|
|
include postings/txns before this date (will be adjusted to following
|
|
|
|
subperiod end when using a report interval)
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-D --daily\f[R]
|
2016-06-03 19:38:06 +03:00
|
|
|
multiperiod/multicolumn report by day
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-W --weekly\f[R]
|
2016-06-03 19:38:06 +03:00
|
|
|
multiperiod/multicolumn report by week
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-M --monthly\f[R]
|
2016-06-03 19:38:06 +03:00
|
|
|
multiperiod/multicolumn report by month
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-Q --quarterly\f[R]
|
2016-06-03 19:38:06 +03:00
|
|
|
multiperiod/multicolumn report by quarter
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-Y --yearly\f[R]
|
2016-06-03 19:38:06 +03:00
|
|
|
multiperiod/multicolumn report by year
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-p --period=PERIODEXP\f[R]
|
2017-12-15 05:20:07 +03:00
|
|
|
set start date, end date, and/or reporting interval all at once using
|
2019-09-01 07:02:00 +03:00
|
|
|
period expressions syntax
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--date2\f[R]
|
2017-08-22 03:19:06 +03:00
|
|
|
match the secondary date instead (see command help for other effects)
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--today=DATE\f[R]
|
2021-09-19 00:24:52 +03:00
|
|
|
override today\[aq]s date (affects relative smart dates, for
|
|
|
|
tests/examples)
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-U --unmarked\f[R]
|
2019-05-24 08:26:43 +03:00
|
|
|
include only unmarked postings/txns (can combine with -P or -C)
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-P --pending\f[R]
|
2015-10-20 16:26:09 +03:00
|
|
|
include only pending postings/txns
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-C --cleared\f[R]
|
2017-06-16 04:47:28 +03:00
|
|
|
include only cleared postings/txns
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-R --real\f[R]
|
2019-05-24 08:26:43 +03:00
|
|
|
include only non-virtual postings
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-NUM --depth=NUM\f[R]
|
2017-09-22 21:51:53 +03:00
|
|
|
hide/aggregate accounts or postings more than NUM levels deep
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-E --empty\f[R]
|
2019-05-24 08:26:43 +03:00
|
|
|
show items with zero amount, normally hidden (and vice-versa in
|
|
|
|
hledger-ui/hledger-web)
|
2015-10-20 16:26:09 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-B --cost\f[R]
|
2020-06-20 00:36:58 +03:00
|
|
|
convert amounts to their cost/selling amount at transaction time
|
2017-02-05 03:31:18 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-V --market\f[R]
|
2020-06-20 00:36:58 +03:00
|
|
|
convert amounts to their market value in default valuation commodities
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-X --exchange=COMM\f[R]
|
2020-06-20 00:36:58 +03:00
|
|
|
convert amounts to their market value in commodity COMM
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--value\f[R]
|
2020-06-20 00:36:58 +03:00
|
|
|
convert amounts to cost or market value, more flexibly than -B/-V/-X
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--infer-market-prices\f[R]
|
2021-02-17 23:07:23 +03:00
|
|
|
use transaction prices (recorded with \[at] or \[at]\[at]) as additional
|
|
|
|
market prices, as if they were P directives
|
2017-12-15 05:20:07 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--auto\f[R]
|
2017-12-31 21:08:44 +03:00
|
|
|
apply automated posting rules to modify transactions.
|
2017-12-15 05:20:07 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--forecast\f[R]
|
2020-02-22 22:33:50 +03:00
|
|
|
generate future transactions from periodic transaction rules, for the
|
|
|
|
next 6 months or till report end date.
|
|
|
|
In hledger-ui, also make ordinary future transactions visible.
|
2020-07-14 22:22:27 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--commodity-style\f[R]
|
2021-09-21 05:56:36 +03:00
|
|
|
Override the commodity style in the output for the specified commodity.
|
|
|
|
For example \[aq]EUR1.000,00\[aq].
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--color=WHEN (or --colour=WHEN)\f[R]
|
2020-07-18 22:37:06 +03:00
|
|
|
Should color-supporting commands use ANSI color codes in text output.
|
|
|
|
\[aq]auto\[aq] (default): whenever stdout seems to be a color-supporting
|
|
|
|
terminal.
|
|
|
|
\[aq]always\[aq] or \[aq]yes\[aq]: always, useful eg when piping output
|
|
|
|
into \[aq]less -R\[aq].
|
|
|
|
\[aq]never\[aq] or \[aq]no\[aq]: never.
|
|
|
|
A NO_COLOR environment variable overrides this.
|
2021-09-22 04:46:55 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--pretty[=WHEN]\f[R]
|
2021-09-22 04:46:55 +03:00
|
|
|
Show prettier output, e.g.
|
|
|
|
using unicode box-drawing characters.
|
|
|
|
Accepts \[aq]yes\[aq] (the default) or \[aq]no\[aq] (\[aq]y\[aq],
|
|
|
|
\[aq]n\[aq], \[aq]always\[aq], \[aq]never\[aq] also work).
|
|
|
|
If you provide an argument you must use \[aq]=\[aq], e.g.
|
|
|
|
\[aq]--pretty=yes\[aq].
|
2017-03-30 00:35:59 +03:00
|
|
|
.PP
|
2017-10-01 00:29:25 +03:00
|
|
|
When a reporting option appears more than once in the command line, the
|
|
|
|
last one takes precedence.
|
|
|
|
.PP
|
|
|
|
Some reporting options can also be written as query arguments.
|
|
|
|
.PP
|
2017-03-30 00:35:59 +03:00
|
|
|
hledger help options:
|
2016-06-03 19:38:06 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-h --help\f[R]
|
2020-12-27 04:29:02 +03:00
|
|
|
show general or COMMAND help
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--man\f[R]
|
2020-12-27 04:29:02 +03:00
|
|
|
show general or COMMAND user manual with man
|
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--info\f[R]
|
2020-12-27 04:29:02 +03:00
|
|
|
show general or COMMAND user manual with info
|
2016-10-26 22:15:20 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--version\f[R]
|
2020-12-29 21:27:48 +03:00
|
|
|
show general or ADDONCMD version
|
2017-03-30 00:35:59 +03:00
|
|
|
.TP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--debug[=N]\f[R]
|
2019-05-24 08:26:43 +03:00
|
|
|
show debug output (levels 1-9, default: 1)
|
2017-09-30 20:00:44 +03:00
|
|
|
.PP
|
2020-12-21 07:11:35 +03:00
|
|
|
A \[at]FILE argument will be expanded to the contents of FILE, which
|
2019-05-24 08:26:43 +03:00
|
|
|
should contain one command line option/argument per line.
|
2022-12-01 23:24:23 +03:00
|
|
|
(To prevent this, insert a \f[V]--\f[R] argument before.)
|
2021-11-19 11:57:53 +03:00
|
|
|
.SH MOUSE
|
|
|
|
.PP
|
|
|
|
In most modern terminals, you can navigate through the screens with a
|
|
|
|
mouse or touchpad:
|
|
|
|
.IP \[bu] 2
|
2021-11-21 11:07:45 +03:00
|
|
|
Use mouse wheel or trackpad to scroll up and down
|
2021-11-19 11:57:53 +03:00
|
|
|
.IP \[bu] 2
|
2021-11-21 11:07:45 +03:00
|
|
|
Click on list items to go deeper
|
2021-11-19 11:57:53 +03:00
|
|
|
.IP \[bu] 2
|
2022-12-01 23:24:23 +03:00
|
|
|
Click on the left margin (column 0) to go back.
|
2020-12-21 07:11:35 +03:00
|
|
|
.SH KEYS
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2021-11-19 11:57:53 +03:00
|
|
|
Keyboard gives more control.
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]?\f[R] shows a help dialog listing all keys.
|
2020-12-21 07:11:35 +03:00
|
|
|
(Some of these also appear in the quick help at the bottom of each
|
2022-12-01 23:24:23 +03:00
|
|
|
screen.)
|
|
|
|
Press \f[V]?\f[R] again (or \f[V]ESCAPE\f[R], or \f[V]LEFT\f[R], or
|
|
|
|
\f[V]q\f[R]) to close it.
|
2020-12-21 07:11:35 +03:00
|
|
|
The following keys work on most screens:
|
2016-06-10 22:12:45 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
The cursor keys navigate: \f[V]RIGHT\f[R] or \f[V]ENTER\f[R] goes
|
|
|
|
deeper, \f[V]LEFT\f[R] returns to the previous screen,
|
|
|
|
\f[V]UP\f[R]/\f[V]DOWN\f[R]/\f[V]PGUP\f[R]/\f[V]PGDN\f[R]/\f[V]HOME\f[R]/\f[V]END\f[R]
|
2015-10-30 23:23:01 +03:00
|
|
|
move up and down through lists.
|
2019-05-24 08:26:43 +03:00
|
|
|
Emacs-style
|
2022-12-01 23:24:23 +03:00
|
|
|
(\f[V]CTRL-p\f[R]/\f[V]CTRL-n\f[R]/\f[V]CTRL-f\f[R]/\f[V]CTRL-b\f[R])
|
|
|
|
and VI-style (\f[V]k\f[R],\f[V]j\f[R],\f[V]l\f[R],\f[V]h\f[R]) movement
|
2022-11-08 06:04:05 +03:00
|
|
|
keys are also supported.
|
2016-08-10 17:24:21 +03:00
|
|
|
A tip: movement speed is limited by your keyboard repeat rate, to move
|
|
|
|
faster you may want to adjust it.
|
2020-07-18 22:37:06 +03:00
|
|
|
(If you\[aq]re on a mac, the karabiner app is one way to do that.)
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2020-12-21 07:11:35 +03:00
|
|
|
With shift pressed, the cursor keys adjust the report period, limiting
|
2016-08-10 17:24:21 +03:00
|
|
|
the transactions to be shown (by default, all are shown).
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]SHIFT-DOWN/UP\f[R] steps downward and upward through these standard
|
2016-08-10 17:24:21 +03:00
|
|
|
report period durations: year, quarter, month, week, day.
|
2022-12-01 23:24:23 +03:00
|
|
|
Then, \f[V]SHIFT-LEFT/RIGHT\f[R] moves to the previous/next period.
|
|
|
|
\f[V]T\f[R] sets the report period to today.
|
|
|
|
With the \f[V]-w/--watch\f[R] option, when viewing a \[dq]current\[dq]
|
2019-05-24 08:26:43 +03:00
|
|
|
period (the current day, week, month, quarter, or year), the period will
|
|
|
|
move automatically to track the current date.
|
2022-12-01 23:24:23 +03:00
|
|
|
To set a non-standard period, you can use \f[V]/\f[R] and a
|
|
|
|
\f[V]date:\f[R] query.
|
2019-05-24 08:26:43 +03:00
|
|
|
.PP
|
2023-01-26 00:59:12 +03:00
|
|
|
(Mac users: SHIFT-DOWN/UP keys do not work by default in Terminal, as of
|
|
|
|
MacOS Monterey.
|
|
|
|
You can configure them as follows: open Terminal, press CMD-comma to
|
|
|
|
open preferences, click Profiles, select your current terminal profile
|
|
|
|
on the left, click Keyboard on the right, click + and add this for
|
|
|
|
Shift-Down: \f[V]\[rs]033[1;2B\f[R], click + and add this for Shift-Up:
|
|
|
|
\f[V]\[rs]033[1;2A\f[R].
|
|
|
|
Press the Escape key to enter the \f[V]\[rs]033\f[R] part, you can\[aq]t
|
|
|
|
type it directly.)
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]/\f[R] lets you set a general filter query limiting the data shown,
|
2019-05-24 08:26:43 +03:00
|
|
|
using the same query terms as in hledger and hledger-web.
|
2020-12-21 07:11:35 +03:00
|
|
|
While editing the query, you can use CTRL-a/e/d/k, BS, cursor keys;
|
2022-12-01 23:24:23 +03:00
|
|
|
press \f[V]ENTER\f[R] to set it, or \f[V]ESCAPE\f[R]to cancel.
|
2020-12-21 07:11:35 +03:00
|
|
|
There are also keys for quickly adjusting some common filters like
|
2017-06-10 23:58:14 +03:00
|
|
|
account depth and transaction status (see below).
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]BACKSPACE\f[R] or \f[V]DELETE\f[R] removes all filters, showing all
|
2016-08-10 17:24:21 +03:00
|
|
|
transactions.
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2020-12-21 07:11:35 +03:00
|
|
|
As mentioned above, by default hledger-ui hides future transactions -
|
2020-02-22 22:33:50 +03:00
|
|
|
both ordinary transactions recorded in the journal, and periodic
|
|
|
|
transactions generated by rule.
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]F\f[R] toggles forecast mode, in which future/forecasted
|
2020-02-22 22:33:50 +03:00
|
|
|
transactions are shown.
|
2018-10-17 23:14:52 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]ESCAPE\f[R] resets the UI state and jumps back to the top screen,
|
2020-07-18 22:37:06 +03:00
|
|
|
restoring the app\[aq]s initial state at startup.
|
|
|
|
Or, it cancels minibuffer data entry or the help dialog.
|
2016-06-10 22:12:45 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]CTRL-l\f[R] redraws the screen and centers the selection if
|
2019-01-25 02:37:40 +03:00
|
|
|
possible (selections near the top won\[aq]t be centered, since we
|
|
|
|
don\[aq]t scroll above the top).
|
2017-06-30 22:45:50 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]g\f[R] reloads from the data file(s) and updates the current screen
|
2016-06-10 22:12:45 +03:00
|
|
|
and any previous screens.
|
2020-12-21 07:11:35 +03:00
|
|
|
(With large files, this could cause a noticeable pause.)
|
2016-06-10 22:12:45 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]I\f[R] toggles balance assertion checking.
|
2020-12-21 07:11:35 +03:00
|
|
|
Disabling balance assertions temporarily can be useful for
|
2016-07-07 01:17:09 +03:00
|
|
|
troubleshooting.
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]a\f[R] runs command-line hledger\[aq]s add command, and reloads the
|
2016-06-10 22:12:45 +03:00
|
|
|
updated file.
|
2020-12-21 07:11:35 +03:00
|
|
|
This allows some basic data entry.
|
2016-06-07 19:38:31 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]A\f[R] is like \f[V]a\f[R], but runs the hledger-iadd tool, which
|
2019-09-13 18:26:49 +03:00
|
|
|
provides a terminal interface.
|
2022-12-01 23:24:23 +03:00
|
|
|
This key will be available if \f[V]hledger-iadd\f[R] is installed in
|
2020-07-18 22:37:06 +03:00
|
|
|
$path.
|
2017-11-29 04:20:41 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]E\f[R] runs $HLEDGER_UI_EDITOR, or $EDITOR, or a default
|
|
|
|
(\f[V]emacsclient -a \[dq]\[dq] -nw\f[R]) on the journal file.
|
2020-12-21 07:11:35 +03:00
|
|
|
With some editors (emacs, vi), the cursor will be positioned at the
|
2016-06-25 05:26:53 +03:00
|
|
|
current transaction when invoked from the register and transaction
|
|
|
|
screens, and at the error location (if possible) when invoked from the
|
|
|
|
error screen.
|
2016-06-20 21:15:09 +03:00
|
|
|
.PP
|
2022-12-14 20:53:09 +03:00
|
|
|
\f[V]B\f[R] toggles cost mode, showing amounts in their cost\[aq]s
|
|
|
|
commodity (like toggling the \f[V]-B/--cost\f[R] flag).
|
2019-11-22 04:32:30 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]V\f[R] toggles value mode, showing amounts\[aq] current market
|
2019-11-22 04:32:30 +03:00
|
|
|
value in their default valuation commodity (like toggling the
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-V/--market\f[R] flag).
|
2020-12-21 07:11:35 +03:00
|
|
|
Note, \[dq]current market value\[dq] means the value on the report end
|
2019-11-22 04:32:30 +03:00
|
|
|
date if specified, otherwise today.
|
2020-12-21 07:11:35 +03:00
|
|
|
To see the value on another date, you can temporarily set that as the
|
2019-11-22 04:49:27 +03:00
|
|
|
report end date.
|
2020-12-21 07:11:35 +03:00
|
|
|
Eg: to see a transaction as it was valued on july 30, go to the accounts
|
2022-12-01 23:24:23 +03:00
|
|
|
or register screen, press \f[V]/\f[R], and add \f[V]date:-7/30\f[R] to
|
2019-11-22 04:49:27 +03:00
|
|
|
the query.
|
2019-11-22 04:32:30 +03:00
|
|
|
.PP
|
2020-12-21 07:11:35 +03:00
|
|
|
At most one of cost or value mode can be active at once.
|
2019-11-22 04:32:30 +03:00
|
|
|
.PP
|
2020-12-21 07:11:35 +03:00
|
|
|
There\[aq]s not yet any visual reminder when cost or value mode is
|
2022-12-01 23:24:23 +03:00
|
|
|
active; for now pressing \f[V]b\f[R] \f[V]b\f[R] \f[V]v\f[R] should
|
2019-11-22 04:32:30 +03:00
|
|
|
reliably reset to normal mode.
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]q\f[R] quits the application.
|
2020-07-18 22:37:06 +03:00
|
|
|
.PP
|
2020-12-21 07:11:35 +03:00
|
|
|
Additional screen-specific keys are described below.
|
|
|
|
.SH SCREENS
|
2022-11-08 05:18:28 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
hledger-ui shows several different screens, described below.
|
|
|
|
It shows the \[dq]Balance sheet accounts\[dq] screen to start with,
|
|
|
|
except in the following situations:
|
2022-11-08 05:18:28 +03:00
|
|
|
.IP \[bu] 2
|
|
|
|
If no asset/liability/equity accounts can be detected, or if an account
|
2022-12-01 23:24:23 +03:00
|
|
|
query has been given on the command line, it starts in the \[dq]All
|
|
|
|
accounts\[dq] screen.
|
2022-11-08 05:18:28 +03:00
|
|
|
.IP \[bu] 2
|
|
|
|
If a starting screen is specified with --menu/--all/--bs/--is/--register
|
2022-12-01 23:24:23 +03:00
|
|
|
on the command line, it starts in that screen.
|
2022-11-08 06:04:05 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
From any screen you can press \f[V]LEFT\f[R] or \f[V]ESC\f[R] to
|
|
|
|
navigate back to the top level \[dq]Menu\[dq] screen.
|
|
|
|
.SS Menu
|
2022-10-02 05:09:26 +03:00
|
|
|
.PP
|
2022-11-06 22:39:22 +03:00
|
|
|
The top-most screen.
|
|
|
|
From here you can navigate to three accounts screens:
|
2022-12-01 23:24:23 +03:00
|
|
|
.SS All accounts
|
2022-11-06 22:39:22 +03:00
|
|
|
.PP
|
2022-11-08 05:18:28 +03:00
|
|
|
This screen shows all accounts (possibly filtered by a query), and their
|
2022-11-08 06:04:05 +03:00
|
|
|
end balances on the date shown in the title bar (or their balance
|
|
|
|
changes in the period shown in the title bar, toggleable with
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]H\f[R]).
|
|
|
|
It is like the \f[V]hledger balance\f[R] command.
|
|
|
|
.SS Balance sheet accounts
|
2022-11-06 22:39:22 +03:00
|
|
|
.PP
|
2022-11-08 05:18:28 +03:00
|
|
|
This screen shows asset, liability and equity accounts, if these can be
|
|
|
|
detected (see account types).
|
2022-11-08 06:04:05 +03:00
|
|
|
It always shows end balances.
|
2022-12-01 23:24:23 +03:00
|
|
|
It is like the \f[V]hledger balancesheetequity\f[R] command.
|
|
|
|
.SS Income statement accounts
|
2022-11-06 22:39:22 +03:00
|
|
|
.PP
|
|
|
|
This screen shows revenue and expense accounts.
|
2022-11-08 06:04:05 +03:00
|
|
|
It always shows balance changes.
|
2022-12-01 23:24:23 +03:00
|
|
|
It is like the \f[V]hledger incomestatement\f[R] command.
|
2022-11-06 22:39:22 +03:00
|
|
|
.PP
|
|
|
|
All of these accounts screens work in much the same way:
|
|
|
|
.PP
|
|
|
|
They show accounts which have been posted to by transactions, as well as
|
|
|
|
accounts which have been declared with an account directive (except for
|
|
|
|
empty parent accounts).
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
If you specify a query on the command line or with \f[V]/\f[R] in the
|
|
|
|
app, they show just the matched accounts, and the balances from matched
|
|
|
|
transactions.
|
|
|
|
.PP
|
|
|
|
hledger-ui shows accounts with zero balances by default (unlike
|
|
|
|
command-line hledger).
|
|
|
|
To hide these, press \f[V]z\f[R] to toggle nonzero mode.
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
Account names are shown as a flat list by default; press \f[V]t\f[R] to
|
2020-07-18 22:37:06 +03:00
|
|
|
toggle tree mode.
|
|
|
|
In list mode, account balances are exclusive of subaccounts, except
|
2018-10-17 23:14:52 +03:00
|
|
|
where subaccounts are hidden by a depth limit (see below).
|
|
|
|
In tree mode, all account balances are inclusive of subaccounts.
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
To see less detail, press a number key, \f[V]1\f[R] to \f[V]9\f[R], to
|
2019-05-24 08:26:43 +03:00
|
|
|
set a depth limit.
|
2022-12-01 23:24:23 +03:00
|
|
|
Or use \f[V]-\f[R] to decrease and \f[V]+\f[R]/\f[V]=\f[R] to increase
|
2019-05-24 08:26:43 +03:00
|
|
|
the depth limit.
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]0\f[R] shows even less detail, collapsing all accounts to a single
|
2016-06-10 22:51:10 +03:00
|
|
|
total.
|
2016-06-11 05:49:13 +03:00
|
|
|
To remove the depth limit, set it higher than the maximum account depth,
|
2022-12-01 23:24:23 +03:00
|
|
|
or press \f[V]ESCAPE\f[R].
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]H\f[R] toggles between showing historical balances or period
|
2022-11-06 22:39:22 +03:00
|
|
|
balances (on the \[dq]All accounts\[dq] screen).
|
2016-08-13 03:46:12 +03:00
|
|
|
Historical balances (the default) are ending balances at the end of the
|
|
|
|
report period, taking into account all transactions before that date
|
|
|
|
(filtered by the filter query if any), including transactions before the
|
|
|
|
start of the report period.
|
|
|
|
In other words, historical balances are what you would see on a bank
|
|
|
|
statement for that account (unless disturbed by a filter query).
|
|
|
|
Period balances ignore transactions 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.
|
2016-06-18 18:46:08 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]U\f[R] toggles filtering by unmarked status, including or excluding
|
2017-06-16 04:47:28 +03:00
|
|
|
unmarked postings in the balances.
|
2022-12-01 23:24:23 +03:00
|
|
|
Similarly, \f[V]P\f[R] toggles pending postings, and \f[V]C\f[R] toggles
|
2017-06-16 04:47:28 +03:00
|
|
|
cleared postings.
|
|
|
|
(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.)
|
2016-06-03 20:22:04 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]R\f[R] toggles real mode, in which virtual postings are ignored.
|
2016-06-10 22:12:45 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
Press \f[V]RIGHT\f[R] to view an account\[aq]s register screen, Or,
|
|
|
|
\f[V]LEFT\f[R] to see the menu screen.
|
|
|
|
.SS Register
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2016-06-18 18:46:08 +03:00
|
|
|
This screen shows the transactions affecting a particular account, like
|
2016-06-03 20:22:04 +03:00
|
|
|
a check register.
|
2016-06-18 18:46:08 +03:00
|
|
|
Each line represents one transaction and shows:
|
2015-10-30 23:23:01 +03:00
|
|
|
.IP \[bu] 2
|
2016-06-18 18:46:08 +03:00
|
|
|
the other account(s) involved, in abbreviated form.
|
2015-10-30 23:23:01 +03:00
|
|
|
(If there are both real and virtual postings, it shows only the accounts
|
|
|
|
affected by real postings.)
|
|
|
|
.IP \[bu] 2
|
2019-01-25 02:37:40 +03:00
|
|
|
the overall change to the current account\[aq]s balance; positive for an
|
2016-06-18 18:46:08 +03:00
|
|
|
inflow to this account, negative for an outflow.
|
2015-10-30 23:23:01 +03:00
|
|
|
.IP \[bu] 2
|
2016-08-13 03:46:12 +03:00
|
|
|
the running historical total or period total for the current account,
|
|
|
|
after the transaction.
|
2022-12-01 23:24:23 +03:00
|
|
|
This can be toggled with \f[V]H\f[R].
|
2016-08-13 03:46:12 +03:00
|
|
|
Similar to the accounts screen, the historical total is affected by
|
|
|
|
transactions (filtered by the filter query) before the report start
|
|
|
|
date, while 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 see on a bank register for the
|
|
|
|
current account.
|
|
|
|
.PP
|
2019-01-25 02:37:40 +03:00
|
|
|
Transactions affecting this account\[aq]s subaccounts will be included
|
|
|
|
in the register if the accounts screen is in tree mode, or if it\[aq]s
|
2020-07-18 22:37:06 +03:00
|
|
|
in list mode but this account has subaccounts which are not shown due to
|
2019-01-25 02:37:40 +03:00
|
|
|
a depth limit.
|
2018-10-17 23:14:52 +03:00
|
|
|
In other words, the register always shows the transactions contributing
|
|
|
|
to the balance shown on the accounts screen.
|
2022-12-01 23:24:23 +03:00
|
|
|
Tree mode/list mode can be toggled with \f[V]t\f[R] here also.
|
2016-06-18 18:46:08 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]U\f[R] toggles filtering by unmarked status, showing or hiding
|
2017-06-10 23:58:14 +03:00
|
|
|
unmarked transactions.
|
2022-12-01 23:24:23 +03:00
|
|
|
Similarly, \f[V]P\f[R] toggles pending transactions, and \f[V]C\f[R]
|
2017-06-16 04:47:28 +03:00
|
|
|
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
|
2019-01-27 02:56:43 +03:00
|
|
|
activate all three, the filter is removed.)
|
2016-06-03 20:22:04 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]R\f[R] toggles real mode, in which virtual postings are ignored.
|
2016-06-03 20:22:04 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]z\f[R] toggles nonzero mode, in which only transactions posting a
|
2019-05-24 08:26:43 +03:00
|
|
|
nonzero change are shown (hledger-ui shows zero items by default, unlike
|
|
|
|
command-line hledger).
|
2016-06-10 22:12:45 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
Press \f[V]RIGHT\f[R] to view the selected transaction in detail.
|
|
|
|
.SS Transaction
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
|
|
|
This screen shows a single transaction, as a general journal entry,
|
2019-01-25 02:37:40 +03:00
|
|
|
similar to hledger\[aq]s print command and journal format
|
2015-10-30 23:23:01 +03:00
|
|
|
(hledger_journal(5)).
|
|
|
|
.PP
|
2019-01-25 02:37:40 +03:00
|
|
|
The transaction\[aq]s date(s) and any cleared flag, transaction code,
|
2015-10-30 23:23:01 +03:00
|
|
|
description, comments, along with all of its account postings are shown.
|
|
|
|
Simple transactions have two postings, but there can be more (or in
|
|
|
|
certain cases, fewer).
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]UP\f[R] and \f[V]DOWN\f[R] will step through all transactions
|
2019-05-24 08:26:43 +03:00
|
|
|
listed in the previous account register screen.
|
2015-10-30 23:23:01 +03:00
|
|
|
In the title bar, the numbers in parentheses show your position within
|
|
|
|
that account register.
|
|
|
|
They will vary depending on which account register you came from
|
|
|
|
(remember most transactions appear in multiple account registers).
|
2019-01-25 02:37:40 +03:00
|
|
|
The #N number preceding them is the transaction\[aq]s position within
|
|
|
|
the complete unfiltered journal, which is a more stable id (at least
|
|
|
|
until the next reload).
|
2022-12-01 23:24:23 +03:00
|
|
|
.SS Error
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
|
|
|
This screen will appear if there is a problem, such as a parse error,
|
|
|
|
when you press g to reload.
|
2016-06-10 22:12:45 +03:00
|
|
|
Once you have fixed the problem, press g again to reload and resume
|
|
|
|
normal operation.
|
|
|
|
(Or, you can press escape to cancel the reload attempt.)
|
2021-07-30 09:40:47 +03:00
|
|
|
.SH TIPS
|
|
|
|
.SS Watch mode
|
|
|
|
.PP
|
|
|
|
One of hledger-ui\[aq]s best features is the auto-reloading
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-w/--watch\f[R] mode.
|
2021-07-30 09:40:47 +03:00
|
|
|
With this flag, it will update the display automatically whenever
|
|
|
|
changes are saved to the data files.
|
|
|
|
.PP
|
|
|
|
This is very useful when reconciling.
|
|
|
|
A good workflow is to have your bank\[aq]s online register open in a
|
|
|
|
browser window, for reference; the journal file open in an editor
|
|
|
|
window; and hledger-ui in watch mode in a terminal window, eg:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
$ hledger-ui --watch --register checking -C
|
|
|
|
\f[R]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
As you mark things cleared in the editor, you can see the effect
|
|
|
|
immediately without having to context switch.
|
|
|
|
This leaves more mental bandwidth for your accounting.
|
|
|
|
Of course you can still interact with hledger-ui when needed, eg to
|
|
|
|
toggle cleared mode, or to explore the history.
|
|
|
|
.PP
|
2022-11-06 22:39:22 +03:00
|
|
|
Here are some current limitations to be aware of:
|
|
|
|
.PP
|
|
|
|
Changes might not be detected with certain editors, possibly including
|
2022-12-01 23:24:23 +03:00
|
|
|
Jetbrains IDEs, \f[V]gedit\f[R], other Gnome applications; or on certain
|
2022-11-06 22:39:22 +03:00
|
|
|
unusual filesystems.
|
|
|
|
(#1617, #911).
|
2022-12-01 23:24:23 +03:00
|
|
|
To work around, reload manually by pressing \f[V]g\f[R] in the
|
2022-11-06 22:39:22 +03:00
|
|
|
hledger-ui window.
|
|
|
|
(Or see #1617 for another workaround, and let us know if it works for
|
|
|
|
you.)
|
|
|
|
.PP
|
|
|
|
CPU and memory usage can sometimes gradually increase, if
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]hledger-ui --watch\f[R] is left running for days.
|
2022-11-06 22:39:22 +03:00
|
|
|
(Possibly correlated with certain platforms, many transactions, and/or
|
|
|
|
large numbers of other files present).
|
2022-12-01 23:24:23 +03:00
|
|
|
To work around, \f[V]q\f[R]uit and restart it, or (where supported)
|
|
|
|
suspend (\f[V]CTRL-z\f[R]) and restart it (\f[V]fg\f[R]).
|
2022-11-06 22:39:22 +03:00
|
|
|
.SS Debug output
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
You can add \f[V]--debug[=N]\f[R] to the command line to log debug
|
2022-11-06 22:39:22 +03:00
|
|
|
output.
|
2022-12-01 23:24:23 +03:00
|
|
|
This will be logged to the file \f[V]hledger-ui.log\f[R] in the current
|
2022-11-06 22:39:22 +03:00
|
|
|
directory.
|
|
|
|
N ranges from 1 (least output, the default) to 9 (maximum output).
|
2015-10-20 16:26:09 +03:00
|
|
|
.SH ENVIRONMENT
|
|
|
|
.PP
|
2019-05-24 08:26:43 +03:00
|
|
|
\f[B]COLUMNS\f[R] The screen width to use.
|
2016-06-10 04:07:08 +03:00
|
|
|
Default: the full terminal width.
|
2015-10-20 16:26:09 +03:00
|
|
|
.PP
|
2019-05-24 08:26:43 +03:00
|
|
|
\f[B]LEDGER_FILE\f[R] The journal file path when not specified with
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-f\f[R].
|
2020-02-07 21:45:57 +03:00
|
|
|
.PP
|
2021-12-10 03:03:58 +03:00
|
|
|
On unix computers, the default value is:
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]\[ti]/.hledger.journal\f[R].
|
2021-12-10 03:03:58 +03:00
|
|
|
.PP
|
|
|
|
A more typical value is something like
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]\[ti]/finance/YYYY.journal\f[R], where \f[V]\[ti]/finance\f[R] is a
|
2020-02-07 21:45:57 +03:00
|
|
|
version-controlled finance directory and YYYY is the current year.
|
2022-12-01 23:24:23 +03:00
|
|
|
Or, \f[V]\[ti]/finance/current.journal\f[R], where current.journal is a
|
2020-02-07 21:45:57 +03:00
|
|
|
symbolic link to YYYY.journal.
|
|
|
|
.PP
|
2021-12-10 03:03:58 +03:00
|
|
|
The usual way to set this permanently is to add a command to one of your
|
2022-12-01 23:24:23 +03:00
|
|
|
shell\[aq]s startup files (eg \f[V]\[ti]/.profile\f[R]):
|
2021-12-10 03:03:58 +03:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export LEDGER_FILE=\[ti]/finance/current.journal\[ga]
|
|
|
|
\f[R]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
On some Mac computers, there is a more thorough way to set environment
|
|
|
|
variables, that will also affect applications started from the GUI (eg,
|
|
|
|
Emacs started from a dock icon): In
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]\[ti]/.MacOSX/environment.plist\f[R], add an entry like:
|
2020-02-07 21:45:57 +03:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
{
|
|
|
|
\[dq]LEDGER_FILE\[dq] : \[dq]\[ti]/finance/current.journal\[dq]
|
|
|
|
}
|
|
|
|
\f[R]
|
|
|
|
.fi
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
For this to take effect you might need to \f[V]killall Dock\f[R], or
|
2021-12-10 03:03:58 +03:00
|
|
|
reboot.
|
|
|
|
.PP
|
|
|
|
On Windows computers, the default value is probably
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]C:\[rs]Users\[rs]YOURNAME\[rs].hledger.journal\f[R].
|
2021-12-10 03:03:58 +03:00
|
|
|
You can change this by running a command like this in a powershell
|
2022-07-28 19:32:58 +03:00
|
|
|
window (let us know if you need to be an Administrator, and if this
|
|
|
|
persists across a reboot):
|
2021-12-10 03:03:58 +03:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
> setx LEDGER_FILE \[dq]C:\[rs]Users\[rs]MyUserName\[rs]finance\[rs]2021.journal\[dq]
|
|
|
|
\f[R]
|
|
|
|
.fi
|
|
|
|
.PP
|
2022-07-28 19:32:58 +03:00
|
|
|
Or, change it in settings: see
|
|
|
|
https://www.java.com/en/download/help/path.html.
|
2015-10-20 16:26:09 +03:00
|
|
|
.SH FILES
|
|
|
|
.PP
|
2023-01-11 12:34:47 +03:00
|
|
|
Reads data from one or more files in journal, timeclock, timedot, or CSV
|
|
|
|
format.
|
|
|
|
The default file is \f[V].hledger.journal\f[R] in your home directory;
|
|
|
|
this can be overridden with one or more \f[V]-f FILE\f[R] options, or
|
|
|
|
the \f[V]LEDGER_FILE\f[R] environment variable.
|
2015-10-20 16:26:09 +03:00
|
|
|
.SH BUGS
|
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-f-\f[R] doesn\[aq]t work (hledger-ui can\[aq]t read from stdin).
|
2015-10-20 16:26:09 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-V\f[R] affects only the accounts screen.
|
2015-10-30 23:23:01 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
When you press \f[V]g\f[R], the current and all previous screens are
|
2016-12-31 06:59:30 +03:00
|
|
|
regenerated, which may cause a noticeable pause with large files.
|
2015-10-30 23:23:01 +03:00
|
|
|
Also there is no visual indication that this is in progress.
|
2016-12-31 06:59:30 +03:00
|
|
|
.PP
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]--watch\f[R] is not yet fully robust.
|
2016-12-31 06:59:30 +03:00
|
|
|
It works well for normal usage, but 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.
|
|
|
|
Symptoms include: unresponsive UI, periodic resetting of the cursor
|
|
|
|
position, momentary display of parse errors, high CPU usage eventually
|
2019-05-24 08:26:43 +03:00
|
|
|
subsiding, and possibly a small but persistent build-up of CPU usage
|
2016-12-31 06:59:30 +03:00
|
|
|
until the program is restarted.
|
2019-09-01 07:02:00 +03:00
|
|
|
.PP
|
|
|
|
Also, if you are viewing files mounted from another machine,
|
2022-12-01 23:24:23 +03:00
|
|
|
\f[V]-w/--watch\f[R] requires that both machine clocks are roughly in
|
2021-11-22 12:33:44 +03:00
|
|
|
step.
|
2015-10-20 16:26:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
.SH "REPORTING BUGS"
|
2016-04-09 23:56:09 +03:00
|
|
|
Report bugs at http://bugs.hledger.org
|
2022-12-14 20:53:09 +03:00
|
|
|
(or on the #hledger chat or hledger mail list)
|
2015-10-20 16:26:09 +03:00
|
|
|
|
|
|
|
.SH AUTHORS
|
2022-12-14 20:53:09 +03:00
|
|
|
Simon Michael <simon@joyful.com> and contributors.
|
|
|
|
.br
|
|
|
|
See http://hledger.org/CREDITS.html
|
2015-10-20 16:26:09 +03:00
|
|
|
|
|
|
|
.SH COPYRIGHT
|
2022-12-14 20:53:09 +03:00
|
|
|
Copyright 2007-2023 Simon Michael and contributors.
|
2015-10-20 16:26:09 +03:00
|
|
|
|
2022-12-14 20:53:09 +03:00
|
|
|
.SH LICENSE
|
2016-04-13 06:31:17 +03:00
|
|
|
Released under GNU GPL v3 or later.
|
2015-10-20 16:26:09 +03:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
2020-12-21 07:11:35 +03:00
|
|
|
hledger(1), hledger\-ui(1), hledger\-web(1), ledger(1)
|