;doc: update manuals

This commit is contained in:
Simon Michael 2023-03-24 10:33:17 -10:00
parent ce07424164
commit 4c29669750
3 changed files with 232 additions and 354 deletions

View File

@ -59,8 +59,8 @@ use this custom display theme
\f[V]--menu\f[R] \f[V]--menu\f[R]
start in the menu screen start in the menu screen
.TP .TP
\f[V]--all\f[R] \f[V]--cash\f[R]
start in the all accounts screen start in the cash accounts screen
.TP .TP
\f[V]--bs\f[R] \f[V]--bs\f[R]
start in the balance sheet accounts screen start in the balance sheet accounts screen
@ -68,6 +68,9 @@ start in the balance sheet accounts screen
\f[V]--is\f[R] \f[V]--is\f[R]
start in the income statement accounts screen start in the income statement accounts screen
.TP .TP
\f[V]--all\f[R]
start in the all accounts screen
.TP
\f[V]--register=ACCTREGEX\f[R] \f[V]--register=ACCTREGEX\f[R]
start in the (first) matched account\[aq]s register screen start in the (first) matched account\[aq]s register screen
.TP .TP
@ -361,100 +364,49 @@ reliably reset to normal mode.
Additional screen-specific keys are described below. Additional screen-specific keys are described below.
.SH SCREENS .SH SCREENS
.PP .PP
hledger-ui shows several different screens, described below. At startup, hledger-ui shows a menu screen by default.
It shows the \[dq]Balance sheet accounts\[dq] screen to start with, From here you can navigate to other screens using the cursor keys:
except in the following situations: \f[V]UP\f[R]/\f[V]DOWN\f[R] to select, \f[V]RIGHT\f[R] to move to the
.IP \[bu] 2 selected screen, \f[V]LEFT\f[R] to return to the previous screen.
If no asset/liability/equity accounts can be detected, or if an account Or you can use \f[V]ESC\f[R] to return directly to the top menu screen.
query has been given on the command line, it starts in the \[dq]All
accounts\[dq] screen.
.IP \[bu] 2
If a starting screen is specified with --menu/--all/--bs/--is/--register
on the command line, it starts in that screen.
.PP .PP
From any screen you can press \f[V]LEFT\f[R] or \f[V]ESC\f[R] to You can also use a command line flag to specific a different startup
navigate back to the top level \[dq]Menu\[dq] screen. 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]).
.SS Menu .SS Menu
.PP .PP
The top-most screen. This is the top-most screen.
From here you can navigate to three accounts screens: From here you can navigate to several screens listing accounts of
.SS All accounts various types.
Note some of these may not show anything until you have configured
account types.
.SS Cash accounts
.PP .PP
This screen shows all accounts (possibly filtered by a query), and their This screen shows \[dq]cash\[dq] (ie, liquid asset) accounts (like
end balances on the date shown in the title bar (or their balance \f[V]hledger balancesheet type:c\f[R]).
changes in the period shown in the title bar, toggleable with It always shows balances (historical ending balances on the date shown
\f[V]H\f[R]). in the title line).
It is like the \f[V]hledger balance\f[R] command.
.SS Balance sheet accounts .SS Balance sheet accounts
.PP .PP
This screen shows asset, liability and equity accounts, if these can be This screen shows asset, liability and equity accounts (like
detected (see account types). \f[V]hledger balancesheetequity\f[R]).
It always shows end balances. It always shows balances.
It is like the \f[V]hledger balancesheetequity\f[R] command.
.SS Income statement accounts .SS Income statement accounts
.PP .PP
This screen shows revenue and expense accounts. This screen shows revenue and expense accounts (like
It always shows balance changes. \f[V]hledger incomestatement\f[R]).
It is like the \f[V]hledger incomestatement\f[R] command. It always shows changes (balance changes in the period shown in the
title line).
.SS All accounts
.PP .PP
All of these accounts screens work in much the same way: This screen shows all accounts in your journal (unless filtered by a
.PP query; like \f[V]hledger balance\f[R]).
They show accounts which have been posted to by transactions, as well as It shows balances by default; you can toggle showing changes with the
accounts which have been declared with an account directive (except for \f[V]H\f[R] key.
empty parent accounts).
.PP
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.
.PP
Account names are shown as a flat list by default; press \f[V]t\f[R] to
toggle tree mode.
In list mode, account balances are exclusive of subaccounts, except
where subaccounts are hidden by a depth limit (see below).
In tree mode, all account balances are inclusive of subaccounts.
.PP
To see less detail, press a number key, \f[V]1\f[R] to \f[V]9\f[R], to
set a depth limit.
Or use \f[V]-\f[R] to decrease and \f[V]+\f[R]/\f[V]=\f[R] to increase
the depth limit.
\f[V]0\f[R] shows even less detail, collapsing all accounts to a single
total.
To remove the depth limit, set it higher than the maximum account depth,
or press \f[V]ESCAPE\f[R].
.PP
\f[V]H\f[R] toggles between showing historical balances or period
balances (on the \[dq]All accounts\[dq] screen).
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.
.PP
\f[V]U\f[R] toggles filtering by unmarked status, including or excluding
unmarked postings in the balances.
Similarly, \f[V]P\f[R] toggles pending postings, and \f[V]C\f[R] toggles
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.)
.PP
\f[V]R\f[R] toggles real mode, in which virtual postings are ignored.
.PP
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 .SS Register
.PP .PP
This screen shows the transactions affecting a particular account, like This screen shows the transactions affecting a particular account.
a check register. Each line represents one transaction, and shows:
Each line represents one transaction and shows:
.IP \[bu] 2 .IP \[bu] 2
the other account(s) involved, in abbreviated form. the other account(s) involved, in abbreviated form.
(If there are both real and virtual postings, it shows only the accounts (If there are both real and virtual postings, it shows only the accounts
@ -463,15 +415,18 @@ affected by real postings.)
the overall change to the current account\[aq]s balance; positive for an the overall change to the current account\[aq]s balance; positive for an
inflow to this account, negative for an outflow. inflow to this account, negative for an outflow.
.IP \[bu] 2 .IP \[bu] 2
the running historical total or period total for the current account, the running total after the transaction.
after the transaction. With the \f[V]H\f[R] key you can toggle between
This can be toggled with \f[V]H\f[R]. .RS 2
Similar to the accounts screen, the historical total is affected by .IP \[bu] 2
transactions (filtered by the filter query) before the report start the period total, which is from just the transactions displayed
date, while the period total is not. .IP \[bu] 2
If the historical total is not disturbed by a filter query, it will be or the historical total, which includes any undisplayed transactions
the running historical balance you would see on a bank register for the before the start of the report period (and matching the filter query if
current account. 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
.PP .PP
Transactions affecting this account\[aq]s subaccounts will be included 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 in the register if the accounts screen is in tree mode, or if it\[aq]s

View File

@ -74,15 +74,18 @@ the data.
--menu --menu
start in the menu screen start in the menu screen
--all --cash
start in the all accounts screen start in the cash accounts screen
--bs --bs
start in the balance sheet accounts screen start in the balance sheet accounts screen
--is --is
start in the income statement accounts screen start in the income statement accounts screen
--all
start in the all accounts screen
--register=ACCTREGEX --register=ACCTREGEX
start in the (first) matched accounts register screen start in the (first) matched accounts register screen
@ -374,125 +377,83 @@ File: hledger-ui.info, Node: SCREENS, Next: TIPS, Prev: KEYS, Up: Top
4 SCREENS 4 SCREENS
********* *********
hledger-ui shows several different screens, described below. It shows At startup, hledger-ui shows a menu screen by default. From here you
the "Balance sheet accounts" screen to start with, except in the can navigate to other screens using the cursor keys: UP/DOWN to
following situations: select, RIGHT to move to the selected screen, LEFT to return to the
previous screen. Or you can use ESC to return directly to the top
menu screen.
• If no asset/liability/equity accounts can be detected, or if an You can also use a command line flag to specific a different startup
account query has been given on the command line, it starts in the screen (--cs, --bs, --is, --all, or --register=ACCT).
"All accounts" screen.
• If a starting screen is specified with menu/all/bs/is/register
on the command line, it starts in that screen.
From any screen you can press LEFT or ESC to navigate back to the
top level "Menu" screen.
* Menu: * Menu:
* Menu:: * Menu::
* All accounts:: * Cash accounts::
* Balance sheet accounts:: * Balance sheet accounts::
* Income statement accounts:: * Income statement accounts::
* All accounts::
* Register:: * Register::
* Transaction:: * Transaction::
* Error:: * Error::
 
File: hledger-ui.info, Node: Menu, Next: All accounts, Up: SCREENS File: hledger-ui.info, Node: Menu, Next: Cash accounts, Up: SCREENS
4.1 Menu 4.1 Menu
======== ========
The top-most screen. From here you can navigate to three accounts This is the top-most screen. From here you can navigate to several
screens: screens listing accounts of various types. Note some of these may not
show anything until you have configured account types.
 
File: hledger-ui.info, Node: All accounts, Next: Balance sheet accounts, Prev: Menu, Up: SCREENS File: hledger-ui.info, Node: Cash accounts, Next: Balance sheet accounts, Prev: Menu, Up: SCREENS
4.2 All accounts 4.2 Cash accounts
================ =================
This screen shows all accounts (possibly filtered by a query), and their This screen shows "cash" (ie, liquid asset) accounts (like hledger
end balances on the date shown in the title bar (or their balance balancesheet type:c). It always shows balances (historical ending
changes in the period shown in the title bar, toggleable with H). It balances on the date shown in the title line).
is like the hledger balance command.
 
File: hledger-ui.info, Node: Balance sheet accounts, Next: Income statement accounts, Prev: All accounts, Up: SCREENS File: hledger-ui.info, Node: Balance sheet accounts, Next: Income statement accounts, Prev: Cash accounts, Up: SCREENS
4.3 Balance sheet accounts 4.3 Balance sheet accounts
========================== ==========================
This screen shows asset, liability and equity accounts, if these can be This screen shows asset, liability and equity accounts (like hledger
detected (see account types). It always shows end balances. It is like balancesheetequity). It always shows balances.
the hledger balancesheetequity command.
 
File: hledger-ui.info, Node: Income statement accounts, Next: Register, Prev: Balance sheet accounts, Up: SCREENS File: hledger-ui.info, Node: Income statement accounts, Next: All accounts, Prev: Balance sheet accounts, Up: SCREENS
4.4 Income statement accounts 4.4 Income statement accounts
============================= =============================
This screen shows revenue and expense accounts. It always shows balance This screen shows revenue and expense accounts (like hledger
changes. It is like the hledger incomestatement command. incomestatement). It always shows changes (balance changes in the
period shown in the title line).
All of these accounts screens work in much the same way:
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).
If you specify a query on the command line or with / in the app,
they show just the matched accounts, and the balances from matched
transactions.
hledger-ui shows accounts with zero balances by default (unlike
command-line hledger). To hide these, press z to toggle nonzero mode.
Account names are shown as a flat list by default; press t to
toggle tree mode. In list mode, account balances are exclusive of
subaccounts, except where subaccounts are hidden by a depth limit (see
below). In tree mode, all account balances are inclusive of
subaccounts.
To see less detail, press a number key, 1 to 9, to set a depth
limit. Or use - to decrease and +/= to increase the depth limit.
0 shows even less detail, collapsing all accounts to a single total.
To remove the depth limit, set it higher than the maximum account depth,
or press ESCAPE.
H toggles between showing historical balances or period balances
(on the "All accounts" screen). 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.
U toggles filtering by unmarked status, including or excluding
unmarked postings in the balances. Similarly, P toggles pending
postings, and C toggles 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.)
R toggles real mode, in which virtual postings are ignored.
Press RIGHT to view an accounts register screen, Or, LEFT to see
the menu screen.
 
File: hledger-ui.info, Node: Register, Next: Transaction, Prev: Income statement accounts, Up: SCREENS File: hledger-ui.info, Node: All accounts, Next: Register, Prev: Income statement accounts, Up: SCREENS
4.5 Register 4.5 All accounts
================
This screen shows all accounts in your journal (unless filtered by a
query; like hledger balance). It shows balances by default; you can
toggle showing changes with the H key.

File: hledger-ui.info, Node: Register, Next: Transaction, Prev: All accounts, Up: SCREENS
4.6 Register
============ ============
This screen shows the transactions affecting a particular account, like This screen shows the transactions affecting a particular account. Each
a check register. Each line represents one transaction and shows: line represents one transaction, and shows:
• the other account(s) involved, in abbreviated form. (If there are • 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
@ -501,13 +462,16 @@ a check register. Each line represents one transaction and shows:
• the overall change to the current accounts balance; positive for • the overall change to the current accounts balance; positive for
an inflow to this account, negative for an outflow. an inflow to this account, negative for an outflow.
• the running historical total or period total for the current • the running total after the transaction. With the H key you can
account, after the transaction. This can be toggled with H. toggle between
Similar to the accounts screen, the historical total is affected by
transactions (filtered by the filter query) before the report start • the period total, which is from just the transactions
date, while the period total is not. If the historical total is displayed
not disturbed by a filter query, it will be the running historical • or the historical total, which includes any undisplayed
balance you would see on a bank register for the current account. 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 banks website,
eg) if not disturbed by a query.
Transactions affecting this accounts subaccounts will be included in Transactions affecting this accounts subaccounts will be included in
the register if the accounts screen is in tree mode, or if its in list the register if the accounts screen is in tree mode, or if its in list
@ -534,7 +498,7 @@ command-line hledger).
 
File: hledger-ui.info, Node: Transaction, Next: Error, Prev: Register, Up: SCREENS File: hledger-ui.info, Node: Transaction, Next: Error, Prev: Register, Up: SCREENS
4.6 Transaction 4.7 Transaction
=============== ===============
This screen shows a single transaction, as a general journal entry, This screen shows a single transaction, as a general journal entry,
@ -558,7 +522,7 @@ reload).
 
File: hledger-ui.info, Node: Error, Prev: Transaction, Up: SCREENS File: hledger-ui.info, Node: Error, Prev: Transaction, Up: SCREENS
4.7 Error 4.8 Error
========= =========
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,
@ -708,38 +672,40 @@ Tag Table:
Node: Top223 Node: Top223
Node: OPTIONS1871 Node: OPTIONS1871
Ref: #options1969 Ref: #options1969
Node: MOUSE7336 Node: MOUSE7389
Ref: #mouse7431 Ref: #mouse7484
Node: KEYS7674 Node: KEYS7727
Ref: #keys7767 Ref: #keys7820
Node: SCREENS12526 Node: SCREENS12579
Ref: #screens12624 Ref: #screens12677
Node: Menu13332 Node: Menu13297
Ref: #menu13424 Ref: #menu13390
Node: All accounts13501 Node: Cash accounts13585
Ref: #all-accounts13640 Ref: #cash-accounts13727
Node: Balance sheet accounts13899 Node: Balance sheet accounts13915
Ref: #balance-sheet-accounts14079 Ref: #balance-sheet-accounts14096
Node: Income statement accounts14271 Node: Income statement accounts14220
Ref: #income-statement-accounts14453 Ref: #income-statement-accounts14406
Node: Register16947 Node: All accounts14574
Ref: #register17084 Ref: #all-accounts14720
Node: Transaction19112 Node: Register14910
Ref: #transaction19235 Ref: #register15034
Node: Error20119 Node: Transaction17046
Ref: #error20213 Ref: #transaction17169
Node: TIPS20457 Node: Error18053
Ref: #tips20556 Ref: #error18147
Node: Watch mode20598 Node: TIPS18391
Ref: #watch-mode20705 Ref: #tips18490
Node: Debug output22193 Node: Watch mode18532
Ref: #debug-output22304 Ref: #watch-mode18639
Node: ENVIRONMENT22524 Node: Debug output20127
Ref: #environment22635 Ref: #debug-output20238
Node: FILES24058 Node: ENVIRONMENT20458
Ref: #files24157 Ref: #environment20569
Node: BUGS24417 Node: FILES21992
Ref: #bugs24494 Ref: #files22091
Node: BUGS22351
Ref: #bugs22428
 
End Tag Table End Tag Table

View File

@ -52,12 +52,14 @@ OPTIONS
--menu start in the menu screen --menu start in the menu screen
--all start in the all accounts screen --cash start in the cash accounts screen
--bs start in the balance sheet accounts screen --bs start in the balance sheet accounts screen
--is start in the income statement accounts screen --is start in the income statement accounts screen
--all start in the all accounts screen
--register=ACCTREGEX --register=ACCTREGEX
start in the (first) matched account's register screen start in the (first) matched account's register screen
@ -327,89 +329,41 @@ KEYS
Additional screen-specific keys are described below. Additional screen-specific keys are described below.
SCREENS SCREENS
hledger-ui shows several different screens, described below. It shows At startup, hledger-ui shows a menu screen by default. From here you
the "Balance sheet accounts" screen to start with, except in the fol- can navigate to other screens using the cursor keys: UP/DOWN to select,
lowing situations: RIGHT to move to the selected screen, LEFT to return to the previous
screen. Or you can use ESC to return directly to the top menu screen.
o If no asset/liability/equity accounts can be detected, or if an You can also use a command line flag to specific a different startup
account query has been given on the command line, it starts in the screen (--cs, --bs, --is, --all, or --register=ACCT).
"All accounts" screen.
o If a starting screen is specified with --menu/--all/--bs/--is/--reg-
ister on the command line, it starts in that screen.
From any screen you can press LEFT or ESC to navigate back to the top
level "Menu" screen.
Menu Menu
The top-most screen. From here you can navigate to three accounts This is the top-most screen. From here you can navigate to several
screens: screens listing accounts of various types. Note some of these may not
show anything until you have configured account types.
All accounts Cash accounts
This screen shows all accounts (possibly filtered by a query), and This screen shows "cash" (ie, liquid asset) accounts (like hledger bal-
their end balances on the date shown in the title bar (or their balance ancesheet type:c). It always shows balances (historical ending bal-
changes in the period shown in the title bar, toggleable with H). It ances on the date shown in the title line).
is like the hledger balance command.
Balance sheet accounts Balance sheet accounts
This screen shows asset, liability and equity accounts, if these can be This screen shows asset, liability and equity accounts (like hledger
detected (see account types). It always shows end balances. It is balancesheetequity). It always shows balances.
like the hledger balancesheetequity command.
Income statement accounts Income statement accounts
This screen shows revenue and expense accounts. It always shows bal- This screen shows revenue and expense accounts (like hledger incomes-
ance changes. It is like the hledger incomestatement command. tatement). It always shows changes (balance changes in the period
shown in the title line).
All of these accounts screens work in much the same way: All accounts
This screen shows all accounts in your journal (unless filtered by a
They show accounts which have been posted to by transactions, as well query; like hledger balance). It shows balances by default; you can
as accounts which have been declared with an account directive (except toggle showing changes with the H key.
for empty parent accounts).
If you specify a query on the command line or with / in the app, they
show just the matched accounts, and the balances from matched transac-
tions.
hledger-ui shows accounts with zero balances by default (unlike com-
mand-line hledger). To hide these, press z to toggle nonzero mode.
Account names are shown as a flat list by default; press t to toggle
tree mode. In list mode, account balances are exclusive of subac-
counts, except where subaccounts are hidden by a depth limit (see
below). In tree mode, all account balances are inclusive of subac-
counts.
To see less detail, press a number key, 1 to 9, to set a depth limit.
Or use - to decrease and +/= to increase the depth limit. 0 shows even
less detail, collapsing all accounts to a single total. To remove the
depth limit, set it higher than the maximum account depth, or press
ESCAPE.
H toggles between showing historical balances or period balances (on
the "All accounts" screen). Historical balances (the default) are end-
ing 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.
U toggles filtering by unmarked status, including or excluding unmarked
postings in the balances. Similarly, P toggles pending postings, and C
toggles 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.)
R toggles real mode, in which virtual postings are ignored.
Press RIGHT to view an account's register screen, Or, LEFT to see the
menu screen.
Register Register
This screen shows the transactions affecting a particular account, like This screen shows the transactions affecting a particular account.
a check register. Each line represents one transaction and shows: 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
@ -418,95 +372,98 @@ SCREENS
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 total after the transaction. With the H key you can tog-
after the transaction. This can be toggled with H. Similar to the gle between
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.
Transactions affecting this account's subaccounts will be included in o the period total, which is from just the transactions displayed
o or the historical total, which includes any undisplayed transac-
tions before the start of the report period (and matching the fil-
ter query if any). This will be the running historical balance
(what you would see on a bank's website, eg) if not disturbed by a
query.
Transactions affecting this account's subaccounts will be included in
the register if the accounts screen is in tree mode, or if it's in list the register if the accounts screen is in tree mode, or if it's in list
mode but this account has subaccounts which are not shown due to a mode but this account has subaccounts which are not shown due to a
depth limit. In other words, the register always shows the transac- depth limit. In other words, the register always shows the transac-
tions contributing to the balance shown on the accounts screen. Tree tions contributing to the balance shown on the accounts screen. Tree
mode/list mode can be toggled with t here also. mode/list mode can be toggled with t here also.
U toggles filtering by unmarked status, showing or hiding unmarked U toggles filtering by unmarked status, showing or hiding unmarked
transactions. Similarly, P toggles pending transactions, and C toggles transactions. Similarly, P toggles pending transactions, and C toggles
cleared transactions. (By default, transactions with all statuses are cleared transactions. (By default, transactions with all statuses are
shown; if you activate one or two status filters, only those transac- 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.) tions are shown; 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 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 to view the selected transaction in detail. Press RIGHT to view the selected transaction in detail.
Transaction Transaction
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 Error
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.)
TIPS TIPS
Watch mode Watch mode
One of hledger-ui's best features is the auto-reloading -w/--watch One of hledger-ui's best features is the auto-reloading -w/--watch
mode. With this flag, it will update the display automatically when- mode. With this flag, it will update the display automatically when-
ever changes are saved to the data files. ever changes are saved to the data files.
This is very useful when reconciling. A good workflow is to have your This is very useful when reconciling. A good workflow is to have your
bank's online register open in a browser window, for reference; the bank'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 journal file open in an editor window; and hledger-ui in watch mode in
a terminal window, eg: a terminal window, eg:
$ hledger-ui --watch --register checking -C $ hledger-ui --watch --register checking -C
As you mark things cleared in the editor, you can see the effect imme- As you mark things cleared in the editor, you can see the effect imme-
diately without having to context switch. This leaves more mental diately without having to context switch. This leaves more mental
bandwidth for your accounting. Of course you can still interact with bandwidth for your accounting. Of course you can still interact with
hledger-ui when needed, eg to toggle cleared mode, or to explore the hledger-ui when needed, eg to toggle cleared mode, or to explore the
history. history.
Here are some current limitations to be aware of: Here are some current limitations to be aware of:
Changes might not be detected with certain editors, possibly including Changes might not be detected with certain editors, possibly including
Jetbrains IDEs, gedit, other Gnome applications; or on certain unusual Jetbrains IDEs, gedit, other Gnome applications; or on certain unusual
filesystems. (#1617, #911). To work around, reload manually by press- filesystems. (#1617, #911). To work around, reload manually by press-
ing g in the hledger-ui window. (Or see #1617 for another workaround, ing g in the hledger-ui window. (Or see #1617 for another workaround,
and let us know if it works for you.) and let us know if it works for you.)
CPU and memory usage can sometimes gradually increase, if hledger-ui CPU and memory usage can sometimes gradually increase, if hledger-ui
--watch is left running for days. (Possibly correlated with certain --watch is left running for days. (Possibly correlated with certain
platforms, many transactions, and/or large numbers of other files platforms, many transactions, and/or large numbers of other files
present). To work around, quit and restart it, or (where supported) present). To work around, quit and restart it, or (where supported)
suspend (CTRL-z) and restart it (fg). suspend (CTRL-z) and restart it (fg).
Debug output Debug output
You can add --debug[=N] to the command line to log debug output. This You can add --debug[=N] to the command line to log debug output. This
will be logged to the file hledger-ui.log in the current directory. N will be logged to the file hledger-ui.log in the current directory. N
ranges from 1 (least output, the default) to 9 (maximum output). ranges from 1 (least output, the default) to 9 (maximum output).
ENVIRONMENT ENVIRONMENT
@ -516,17 +473,17 @@ ENVIRONMENT
On unix computers, the default value is: ~/.hledger.journal. On unix computers, the default value is: ~/.hledger.journal.
A more typical value is something like ~/finance/YYYY.journal, where A more typical value is something like ~/finance/YYYY.journal, where
~/finance is a version-controlled finance directory and YYYY is the ~/finance is a version-controlled finance directory and YYYY is the
current year. Or, ~/finance/current.journal, where current.journal is current year. Or, ~/finance/current.journal, where current.journal is
a symbolic link to YYYY.journal. a symbolic link to YYYY.journal.
The usual way to set this permanently is to add a command to one of The usual way to set this permanently is to add a command to one of
your shell's startup files (eg ~/.profile): your shell's startup files (eg ~/.profile):
export LEDGER_FILE=~/finance/current.journal` export LEDGER_FILE=~/finance/current.journal`
On some Mac computers, there is a more thorough way to set environment On some Mac computers, there is a more thorough way to set environment
variables, that will also affect applications started from the GUI (eg, variables, that will also affect applications started from the GUI (eg,
Emacs started from a dock icon): In ~/.MacOSX/environment.plist, add an Emacs started from a dock icon): In ~/.MacOSX/environment.plist, add an
entry like: entry like:
@ -537,20 +494,20 @@ ENVIRONMENT
For this to take effect you might need to killall Dock, or reboot. For this to take effect you might need to killall Dock, or reboot.
On Windows computers, the default value is probably C:\Users\YOUR- On Windows computers, the default value is probably C:\Users\YOUR-
NAME\.hledger.journal. You can change this by running a command like NAME\.hledger.journal. You can change this by running a command like
this in a powershell window (let us know if you need to be an Adminis- this in a powershell window (let us know if you need to be an Adminis-
trator, and if this persists across a reboot): trator, and if this persists across a reboot):
> setx LEDGER_FILE "C:\Users\MyUserName\finance\2021.journal" > setx LEDGER_FILE "C:\Users\MyUserName\finance\2021.journal"
Or, change it in settings: see https://www.java.com/en/down- Or, change it in settings: see https://www.java.com/en/down-
load/help/path.html. load/help/path.html.
FILES FILES
Reads data from one or more files in journal, timeclock, timedot, or Reads data from one or more files in journal, timeclock, timedot, or
CSV format. The default file is .hledger.journal in your home direc- CSV format. The default file is .hledger.journal in your home direc-
tory; this can be overridden with one or more -f FILE options, or the tory; this can be overridden with one or more -f FILE options, or the
LEDGER_FILE environment variable. LEDGER_FILE environment variable.
BUGS BUGS
@ -559,13 +516,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.
@ -576,7 +533,7 @@ BUGS
REPORTING BUGS REPORTING BUGS
Report bugs at http://bugs.hledger.org (or on the #hledger chat or Report bugs at http://bugs.hledger.org (or on the #hledger chat or
hledger mail list) hledger mail list)