hledger/hledger-ui/hledger-ui.1

593 lines
20 KiB
Groff
Raw Normal View History

2023-09-11 11:57:30 +03:00
.TH "HLEDGER-UI" "1" "September 2023" "hledger-ui-1.31.99 " "hledger User Manuals"
.SH NAME
.PP
2022-12-14 20:53:09 +03:00
hledger-ui - robust, friendly plain text accounting (TUI version)
.SH SYNOPSIS
.PP
2023-06-01 08:07:44 +03:00
\f[V]hledger-ui [OPTS] [QUERYARGS]\f[R]
.PD 0
.P
.PD
2023-06-01 08:07:44 +03:00
\f[V]hledger ui -- [OPTS] [QUERYARGS]\f[R]
.SH DESCRIPTION
.PP
2023-09-11 11:57:30 +03:00
This manual is for hledger\[aq]s terminal interface, version 1.31.99.
2022-12-14 20:53:09 +03:00
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).
.PP
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
quicker and more convenient than the web interface.
.PP
2023-05-26 22:28:53 +03:00
Like hledger, it reads from (and appends to) a journal file specified by
the \f[V]LEDGER_FILE\f[R] environment variable (defaulting to
\f[V]$HOME/.hledger.journal\f[R]); or you can specify files with
\f[V]-f\f[R] options.
It can also read timeclock files, timedot files, or any CSV/SSV/TSV file
with a date field.
(See hledger(1) -> Input for details.)
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].
.SH OPTIONS
.PP
Any QUERYARGS are interpreted as a hledger search query which filters
the data.
2023-05-31 20:57:37 +03:00
.PP
hledger-ui provides the following options:
.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
.TP
2022-12-01 23:24:23 +03:00
\f[V]--theme=default|terminal|greenterm\f[R]
use this custom display theme
.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
2023-03-24 23:33:17 +03:00
\f[V]--cash\f[R]
start in the cash accounts screen
2022-11-08 05:18:28 +03:00
.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
2023-03-24 23:33:17 +03:00
\f[V]--all\f[R]
start in the all accounts screen
.TP
2022-12-01 23:24:23 +03:00
\f[V]--register=ACCTREGEX\f[R]
start in the (first) matched account\[aq]s register screen
.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
.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
.PP
2023-05-31 20:57:37 +03:00
hledger-ui also supports many of hledger\[aq]s general options (and the
hledger manual\[aq]s command line tips also apply here):
.SS General help options
.TP
\f[V]-h --help\f[R]
show general or COMMAND help
.TP
\f[V]--man\f[R]
show general or COMMAND user manual with man
.TP
\f[V]--info\f[R]
show general or COMMAND user manual with info
.TP
\f[V]--version\f[R]
show general or ADDONCMD version
.TP
\f[V]--debug[=N]\f[R]
show debug output (levels 1-9, default: 1)
.SS General input options
.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])
.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)
.TP
2022-12-01 23:24:23 +03:00
\f[V]--separator=CHAR\f[R]
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
.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
.TP
2022-12-01 23:24:23 +03:00
\f[V]--pivot FIELDNAME\f[R]
use some other field or tag for the account name
.TP
2022-12-01 23:24:23 +03:00
\f[V]-I --ignore-assertions\f[R]
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)
2023-05-31 20:57:37 +03:00
.SS General reporting options
.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)
.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)
.TP
2022-12-01 23:24:23 +03:00
\f[V]-D --daily\f[R]
multiperiod/multicolumn report by day
.TP
2022-12-01 23:24:23 +03:00
\f[V]-W --weekly\f[R]
multiperiod/multicolumn report by week
.TP
2022-12-01 23:24:23 +03:00
\f[V]-M --monthly\f[R]
multiperiod/multicolumn report by month
.TP
2022-12-01 23:24:23 +03:00
\f[V]-Q --quarterly\f[R]
multiperiod/multicolumn report by quarter
.TP
2022-12-01 23:24:23 +03:00
\f[V]-Y --yearly\f[R]
multiperiod/multicolumn report by year
.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
.TP
2022-12-01 23:24:23 +03:00
\f[V]--date2\f[R]
match the secondary date instead (see command help for other effects)
.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)
.TP
2022-12-01 23:24:23 +03:00
\f[V]-P --pending\f[R]
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
.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
.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
.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)
.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
.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
2023-05-26 22:28:53 +03:00
\f[V]--infer-equity\f[R]
infer conversion equity postings from costs
.TP
\f[V]--infer-costs\f[R]
infer costs from conversion equity postings
.TP
2022-12-01 23:24:23 +03:00
\f[V]--infer-market-prices\f[R]
2023-05-26 22:28:53 +03:00
use costs as additional market prices, as if they were P directives
.TP
\f[V]--forecast\f[R]
generate transactions from periodic rules,
between the latest recorded txn and 6 months from today,
or during the specified PERIOD (= is required).
Auto posting rules will be applied to these transactions as well.
Also, in hledger-ui make future-dated transactions visible.
2017-12-15 05:20:07 +03:00
.TP
2022-12-01 23:24:23 +03:00
\f[V]--auto\f[R]
2023-05-26 22:28:53 +03:00
generate extra postings by applying auto posting rules to all txns (not
just forecast txns)
2017-12-15 05:20:07 +03:00
.TP
2023-05-26 22:28:53 +03:00
\f[V]--verbose-tags\f[R]
add visible tags indicating transactions or postings which have been
generated/modified
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.
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
possible (selections near the top won\[aq]t be centered, since we
don\[aq]t scroll above the top).
.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
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.
.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
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
2023-03-24 23:33:17 +03:00
At startup, hledger-ui shows a menu screen by default.
From here you can navigate to other screens using the cursor keys:
\f[V]UP\f[R]/\f[V]DOWN\f[R] to select, \f[V]RIGHT\f[R] to move to the
selected screen, \f[V]LEFT\f[R] to return to the previous screen.
Or you can use \f[V]ESC\f[R] to return directly to the top menu screen.
2022-11-08 06:04:05 +03:00
.PP
2023-03-24 23:33:17 +03:00
You can also use a command line flag to specific a different startup
screen (\f[V]--cs\f[R], \f[V]--bs\f[R], \f[V]--is\f[R], \f[V]--all\f[R],
or \f[V]--register=ACCT\f[R]).
2022-12-01 23:24:23 +03:00
.SS Menu
2022-10-02 05:09:26 +03:00
.PP
2023-03-24 23:33:17 +03:00
This is the top-most screen.
From here you can navigate to several screens listing accounts of
various types.
Note some of these may not show anything until you have configured
account types.
.SS Cash accounts
.PP
This screen shows \[dq]cash\[dq] (ie, liquid asset) accounts (like
\f[V]hledger balancesheet type:c\f[R]).
It always shows balances (historical ending balances on the date shown
in the title line).
2022-12-01 23:24:23 +03:00
.SS Balance sheet accounts
2022-11-06 22:39:22 +03:00
.PP
2023-03-24 23:33:17 +03:00
This screen shows asset, liability and equity accounts (like
\f[V]hledger balancesheetequity\f[R]).
It always shows balances.
2022-12-01 23:24:23 +03:00
.SS Income statement accounts
2022-11-06 22:39:22 +03:00
.PP
2023-03-24 23:33:17 +03:00
This screen shows revenue and expense accounts (like
\f[V]hledger incomestatement\f[R]).
It always shows changes (balance changes in the period shown in the
title line).
.SS All accounts
2022-12-01 23:24:23 +03:00
.PP
2023-03-24 23:33:17 +03:00
This screen shows all accounts in your journal (unless filtered by a
query; like \f[V]hledger balance\f[R]).
It shows balances by default; you can toggle showing changes with the
\f[V]H\f[R] key.
2022-12-01 23:24:23 +03:00
.SS Register
2015-10-30 23:23:01 +03:00
.PP
2023-03-24 23:33:17 +03:00
This screen shows the transactions affecting a particular account.
Each line represents one transaction, and shows:
2015-10-30 23:23:01 +03:00
.IP \[bu] 2
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
the overall change to the current account\[aq]s balance; positive for an
inflow to this account, negative for an outflow.
2015-10-30 23:23:01 +03:00
.IP \[bu] 2
2023-03-24 23:33:17 +03:00
the running total after the transaction.
With the \f[V]H\f[R] key you can toggle between
.RS 2
.IP \[bu] 2
the period total, which is from just the transactions displayed
.IP \[bu] 2
or the historical total, which includes any undisplayed transactions
before the start of the report period (and matching the filter query if
any).
This will be the running historical balance (what you would see on a
bank\[aq]s website, eg) if not disturbed by a query.
.RE
2016-08-13 03:46:12 +03:00
.PP
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
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.
.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,
similar to hledger\[aq]s print command and journal format
2015-10-30 23:23:01 +03:00
(hledger_journal(5)).
.PP
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).
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).
2023-03-28 00:07:56 +03:00
.PP
On this screen (and the register screen), the \f[V]E\f[R] key will open
your text editor with the cursor positioned at the current transaction
if possible.
.PP
This screen has a limitation with showing file updates: it will not show
them until you exit and re-enter it.
So eg to see the effect of using the \f[V]E\f[R] key, currently you
must: - press \f[V]E\f[R], edit and save the file, then exit the editor,
returning to hledger-ui - press \f[V]g\f[R] to reload the file (or use
\f[V]-w/--watch\f[R] mode) - press \f[V]LEFT\f[R] then \f[V]RIGHT\f[R]
to exit and re-enter the transaction screen.
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
2023-05-26 22:28:53 +03:00
There are currently some limitations with \f[V]--watch\f[R]:
.PP
It may not work correctly for you, depending on platform or system
configuration.
(Eg #836.)
.PP
At least on mac, there can be a slow build-up of CPU usage over time,
until the program is restarted (or, suspending and restarting with
\f[V]CTRL-z\f[R] \f[V]fg\f[R] may be enough).
.PP
It will not detect file changes made by certain editors, such as
Jetbrains IDEs or \f[V]gedit\f[R], or on certain less common
filesystems.
(To work around, press \f[V]g\f[R] to reload manually, or try
#1617\[aq]s \f[V]fs.inotify.max_user_watches\f[R] workaround and let us
know.)
.PP
If you are viewing files mounted from another machine, the system clocks
on both machines should be roughly in agreement.
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).
.SH ENVIRONMENT
.PP
2019-05-24 08:26:43 +03:00
\f[B]COLUMNS\f[R] The screen width to use.
Default: the full terminal width.
.PP
2023-05-26 22:28:53 +03:00
\f[B]LEDGER_FILE\f[R] The main journal file to use when not specified
with \f[V]-f/--file\f[R].
Default: \f[V]$HOME/.hledger.journal\f[R].
.SH BUGS
2021-12-10 03:03:58 +03:00
.PP
2023-05-26 22:28:53 +03:00
We welcome bug reports in the hledger issue tracker (shortcut:
http://bugs.hledger.org), or on the #hledger chat or hledger mail list
(https://hledger.org/support).
.PP
2023-05-26 22:28:53 +03:00
Some known issues:
.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).
.PP
2023-05-26 22:28:53 +03:00
If you press \f[V]g\f[R] with large files, there could be a noticeable
pause.
2015-10-30 23:23:01 +03:00
.PP
2023-05-26 22:28:53 +03:00
The Transaction screen does not update from file changes until you exit
and re-endter it (see SCREENS > Transaction above).
.PP
2023-05-26 22:28:53 +03:00
\f[V]--watch\f[R] is not yet fully robust on all platforms (see Watch
mode above).
.SH AUTHORS
2022-12-14 20:53:09 +03:00
Simon Michael <simon@joyful.com> and contributors.
.br
See http://hledger.org/CREDITS.html
.SH COPYRIGHT
2022-12-14 20:53:09 +03:00
Copyright 2007-2023 Simon Michael and contributors.
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.
.SH SEE ALSO
2020-12-21 07:11:35 +03:00
hledger(1), hledger\-ui(1), hledger\-web(1), ledger(1)