A keyboard-driven terminal editor for hledger plain-text accounting journals
Project description
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)
- Monokai Pro default theme; runtime theme switching supported
- Incremental search with match highlighting (
Ctrl+F,Shift+PgUp/Down) - 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) - Save with date-sort and whitespace re-alignment (
Ctrl+S) - Undo / Redo (
Ctrl+Z/Ctrl+Y) - Command palette (
Ctrl+P)
Planned / In Progress
- Transaction filter popup (
Ctrl+O) — UI stub only; criteria filtering not yet implemented - BalanceSidebar — account balance tree (wired up, threaded refresh on save)
- RegisterPanel — account transaction register (wired up, last 500 rows)
- Reconciliation mode
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ledgerkit_editor-1.0.0.tar.gz.
File metadata
- Download URL: ledgerkit_editor-1.0.0.tar.gz
- Upload date:
- Size: 69.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3836601ba41279a08dc5035d6366f2d998d4ca546e2d2ac8822059ba674fd971
|
|
| MD5 |
22af6b373d7dbba5da3780ff53fd00cb
|
|
| BLAKE2b-256 |
ce485f3beaa98ae932e03d7fe635e3a9e7701f507a65e7bf0d7bbbef85cf4019
|
Provenance
The following attestation bundles were made for ledgerkit_editor-1.0.0.tar.gz:
Publisher:
publish.yml on ctosullivan/ledgerkit-editor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ledgerkit_editor-1.0.0.tar.gz -
Subject digest:
3836601ba41279a08dc5035d6366f2d998d4ca546e2d2ac8822059ba674fd971 - Sigstore transparency entry: 1756030511
- Sigstore integration time:
-
Permalink:
ctosullivan/ledgerkit-editor@48dcf9291f8338b9922c0a2784f124fa6c658089 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ctosullivan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@48dcf9291f8338b9922c0a2784f124fa6c658089 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ledgerkit_editor-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ledgerkit_editor-1.0.0-py3-none-any.whl
- Upload date:
- Size: 55.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4343ccac61dd803c9f36f6d99a7ca19374bb443dd794b92ee7267e413bdc3c6
|
|
| MD5 |
a08ae8d1fe09c139aa56004b131f61a2
|
|
| BLAKE2b-256 |
e0d4944c8527c7aeacb449cec87b0f951b6d02cf12c74e3a14244ca75c0dd5fd
|
Provenance
The following attestation bundles were made for ledgerkit_editor-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on ctosullivan/ledgerkit-editor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ledgerkit_editor-1.0.0-py3-none-any.whl -
Subject digest:
f4343ccac61dd803c9f36f6d99a7ca19374bb443dd794b92ee7267e413bdc3c6 - Sigstore transparency entry: 1756030514
- Sigstore integration time:
-
Permalink:
ctosullivan/ledgerkit-editor@48dcf9291f8338b9922c0a2784f124fa6c658089 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ctosullivan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@48dcf9291f8338b9922c0a2784f124fa6c658089 -
Trigger Event:
push
-
Statement type: