A faster way to add transactions to your hledger journal.
ladder works like hledger add: it asks for a date, a description, then
accounts and amounts until the transaction balances, and appends the result to
your journal. As you type, a dropdown fuzzy-matches your past descriptions and
accounts, so most transactions take only a few keystrokes.
- Fuzzy completion for descriptions and accounts, ranked by how often and how recently you've used them.
- Templates: pick a past description and its accounts and amounts become
the defaults. A new description borrows accounts from a similar past one
(
Blue Bottle Roastersborrows fromBlue Bottle Coffee). - Smart account suggestions: accounts you usually use together rank first, for example the card you normally pay for coffee with.
- Live preview of the transaction that will be saved. Press Ctrl-Y to save it straight away, or Ctrl-T to change just the amount first.
- Automatic balancing and arithmetic: the last amount fills itself in, and
amounts can be expressions like
45.80 + 4.20. - Flexible dates such as
today,y,-3,10/19,frior2w ago. - Works with your existing journal, including
includefiles, directives, comments and prices.
- Rust and Cargo, version 1.88 or
newer. The easiest way to get them is
rustup. - An hledger journal file. ladder only reads and appends to it, so hledger itself doesn't need to be installed.
cargo install --git https://github.com/plwg/ladderOr, from a clone of this repository:
cargo install --path .ladder # uses $LEDGER_FILE, else ~/.hledger.journal
ladder -f my.journal # use a specific journalThen:
- Enter a date, or press Enter for the default (today, then the date of the transaction you last added).
- Start typing a description. Press Enter to pick the highlighted match, or Alt-Enter to use exactly what you typed.
- Accept or change each account and amount. Press Ctrl-Y at any point to save the transaction shown in the preview, or Ctrl-T if only its amount needs changing.
- Press Ctrl-D to quit.
See the full guide for every option, all the key bindings, how ranking and templates work, and the developer tools.
MIT. See LICENSE.
