Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Editors

If you edit your journals (and other hledger data files) with a text editor, you want that frequent task to be as pleasant and non-tedious as possible. So it's worth using a powerful text editor - one with comfortable copy/paste, search & replace, and perhaps more advanced features like macros.

For the popular text editors there are helper modes/extensions which can make editing hledger journal files much more convenient. These provide things like syntactic highlighting, auto indentation, and tab completion of account names. You can find a list of these extensions at
https://plaintextaccounting.org/#editor-plugins.
The ones with "hledger" in their name are designed specifically for working with hledger journals, while the ones with "ledger" in their name are not, but can often work well with hledger as well (eg: ledger-mode).

Here are more details and tips.

Emacs

See hledger and Emacs for details and configuration tips. In brief:

  • ledger-mode is the most used and maintained Emacs mode for Ledger and hledger files, and works well with hledger when configured for it.
  • hledger-mode is an alternative written specifically for hledger; less actively maintained.
  • flycheck-hledger and flymake-hledger show problems in your journal as you edit it.
  • org babel can embed hledger reports in org files, and calc can help with arithmetic during data entry.

Vim

VS Code

Extensions for working with hledger journal files - as of 2026Q3 I think they rank in features and activity roughly like so:

Extensions for working with hledger CSV rules files:

All VS Code extensions mentioning "hledger":

Miscellaneous

From the mail list, a trick for aligning transaction amounts: "Space-indent the account, tab-indent the amount, set a large tab stop."