ledgerkit-editor
A keyboard-driven terminal editor for hledger plain-text accounting journals.
Early beta — use with caution. This software is under active development and may corrupt your journal files. Always keep a backup before editing. Do not use on irreplaceable data without a recovery plan.
Built with Textual and ledgerkit.
Features
- Full-screen text editor with hledger syntax highlighting (dates, payees, accounts,
amounts, commodities, comments, directives — including
Pprice directives, field-by-field) - Monokai Pro default theme; runtime theme switching supported
- Incremental search with match highlighting (
Ctrl+F,Shift+PgUp/Down,Ctrl+Cto copy the current match) - View filter — show all / cleared-only / unreconciled-only transactions (
Ctrl+L) - Transaction block selection and duplication (
Ctrl+T,Ctrl+G) - Cleared status toggle — single transaction (3-state cycle) and bulk selection (
Ctrl+R) - Insert today's date at cursor (
Ctrl+D) - Date shifting with
Shift+Up/Shift+Down(cursor-position-aware; works on transaction headers andPprice directives; expands an unpadded date like2026-9-1to2026-09-01on first use) - Save with date-sort and whitespace re-alignment (
Ctrl+S) - Undo / Redo (
Ctrl+Z/Ctrl+Y) - Command palette (
Ctrl+P)
Planned / In Progress
See ROADMAP.md for the full, current status — it's the source of truth this section summarizes, not the other way around.
- Transaction filter (
Ctrl+O) with smart dates and regex — implemented on the unreleasedrelease/1.1.0branch; the latest PyPI release still has only the UI stub (criteria filtering not yet active) - Tab autocomplete for account/payee names — also on
release/1.1.0, unreleased Alt+P/Alt+Ntransaction templates, month/year date-shift modifiers, large-journal performance — not yet started
No side-panel features (account balance tree, transaction register, reconciliation mode) are currently planned — they existed pre-v0.8.0 and were removed; see ROADMAP.md's "Window Panes" note.
Installation
From PyPI
pip install ledgerkit-editor
ledgerkit-editor path/to/my.journal
Development setup
git clone https://github.com/ctosullivan/ledgerkit-editor.git
cd ledgerkit-editor
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # macOS / Linux
pip install --upgrade pip
pip install -e ".[dev]"
# Run tests
pytest --tb=short
# Launch
ledgerkit-editor path/to/my.journal
Journal File Resolution
The editor resolves the journal file in this order:
- Path passed as a command-line argument
$LEDGER_FILEenvironment variable~/.hledger.journaldefault- Interactive prompt on launch (if none of the above resolve)
Keyboard Shortcuts
See docs/shortcuts.md for the full reference.
Requirements
- Python 3.9+
- textual 8.2.5
- ledgerkit 1.0.0.dev1
Development
See CONTRIBUTING.md for setup instructions and the ledgerkit dependency update workflow.
Roadmap
See ROADMAP.md for planned features and current development status.
This repository was previously named
PyLedger-editor. GitHub redirects old URLs automatically.
Metadata
Release files for ledgerkit-editor 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ledgerkit_editor-1.2.0.tar.gz | 115.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ledgerkit_editor-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 208.7 kB
Release files / ledgerkit_editor-1.2.0.tar.gz
| Download URL | ledgerkit_editor-1.2.0.tar.gz |
|---|---|
| Size | 115.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f6841390dcb933cc4c6b04f7fa49becbdab53062545da9753783b42ff2fc03a
|
|
BLAKE2b-256 checksum How to use checksums |
b4d77d7b9c287c5fe5aa8c2bdd1829dcfa6f74d8470f019467461f32bd7af69e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.
Transparency logRelease files / ledgerkit_editor-1.2.0-py3-none-any.whl
| Download URL | ledgerkit_editor-1.2.0-py3-none-any.whl |
|---|---|
| Size | 93.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10a6301688291034edf0e68baf590aa8e4927d01a3af5c7f459a38daaef658f0
|
|
BLAKE2b-256 checksum How to use checksums |
2fc2e29e9fb108c8b9910e6fb33c4e48fb288c6028a8d02c095da09725cd6ae2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.
Transparency log