GitHub
Filtering the journal

Filtering the journal

The filter bar at the top of the Journal tab sets which transactions the table, the insights panel and the totals footer show. It has three controls: a date range, an account picker and a search box.

The filter bar with an expenses filter applied: the date preset and range boxed, the Accounts picker circled, and the active filter chip below

A transaction has to pass all three filters to appear.

Date range

The date button opens a list of presets:

The two date fields beside it set a custom range. Both ends are inclusive. Clearing a field leaves that end open, so an empty “from” means “since the beginning”.

The journal opens on Last 90 days. A preset is relative to today. If you leave “Year to date” selected, it still means year to date tomorrow.

Accounts

The account picker lists your accounts as a tree, with a search box at the top to find one by name. Press a to open it with the search box focused.

The Accounts picker open, with the search field above the account tree

Checking an account selects it and everything under it. Checking expenses:food includes expenses:food:groceries and expenses:food:restaurants. A parent shows a partial check when only some of its children are selected.

A transaction matches when any of its postings hits a selected account. With nothing selected, every account matches.

Account filters also change the totals. The insights panel and the Visible Journal Total only count postings to the selected accounts. Filtering to expenses:food therefore shows what you spent on food, not the bank side of each purchase.

The search box matches text anywhere in a transaction:

Matching is case-insensitive and finds the text inside longer words. Press / to jump to the search box. The table updates once you pause typing. Esc leaves the box and keeps the query.

Active filter chips

When any filter differs from the default, a row of chips appears under the bar. There is one chip for the date range, one for each selected account and one for the search text. Click a chip’s ✕ to remove that filter. Reset all returns to the last 90 days, all accounts and no search, and removes a pinned running balance.

Each account chip also has a ⚖ button. It pins that account’s running balance, which adds Change and Balance columns to the table. The pinned account gets a chip of its own, and changing the account filter afterwards leaves it in place.

Sharing a filtered view

The filters are written into the page URL as you change them:

ParameterMeaning
presetA date preset: thisMonth, lastMonth, last90, ytd, thisYear, lastYear or all.
from, toA custom range as YYYY-MM-DD. An empty value is an open end.
acctSelected accounts, comma-separated.
qThe search text.
bal, balcA pinned running balance: the account, and the commodity when one was picked.

For example, ?preset=ytd&acct=expenses:food shows this year’s food spending. A link with a preset keeps working as time moves. A link with explicit dates always shows the same range.

This is most useful when you run Ledgeline as a server and open it in a browser. You can bookmark a view or send it to someone who has access.

Arriving from another page

Several pages open the journal already filtered. Pressing Enter on an account row in a report, or on a holding in Holdings, shows that account’s transactions over all dates. From the Balance Sheet, Net Worth and Holdings, the account’s running balance is pinned too. Clicking an account in the insights panel’s Balances tab filters to it and pins it without changing the date range. The Problems drawer widens the date range just enough to include the transaction it is taking you to and leaves the other filters alone.