edit HLedger journals with Language Server Protocol support

7 views
Skip to first unread message

Henning Thielemann

unread,
Jul 3, 2025, 5:40:40 AM (6 days ago) Jul 3
to hle...@googlegroups.com

I had the idea that editing hledger journals in the left view and watching
accounts in the right view in an IDE could be a nice alternative to
hledger-web. This could even include query functionality. I searched the
web and found some approaches of connecting HLedger to LSP:

https://github.com/yeldiRium/hledger-language-server
https://github.com/abangfarhan/hledger-language-server
https://deepwiki.com/claytonrcarter/ledger-language-server

All written in strange languages and the feature lists do not mention the
account navigation feature.

Timofey Zakrevskiy

unread,
Jul 3, 2025, 11:12:39 AM (5 days ago) Jul 3
to hledger
Hi!

While I understand the general benefit of having an LSP, what do you understand under "account navigation feature"? How would that be different from a "hledger-ui"
 terminal window and your journal file opened in an editor (or hledger-add/hledger-iadd/whatever)?

In my understanding, implementing a proper LSP server with a reasonable set of features ("reasonable" being highly subjective here) is a non-trivial task.

Cheers!

четверг, 3 июля 2025 г. в 11:40:40 UTC+2, google...@henning-thielemann.de:

Henning Thielemann

unread,
Jul 3, 2025, 12:21:39 PM (5 days ago) Jul 3
to hledger

On Thu, 3 Jul 2025, Timofey Zakrevskiy wrote:

> While I understand the general benefit of having an LSP, what do you
> understand under "account navigation feature"? How would that be
> different from a "hledger-ui" terminal window and your journal file
> opened in an editor (or hledger-add/hledger-iadd/whatever)?

Would be very similar but people could use the IDE they are familiar with.


> In my understanding, implementing a proper LSP server with a reasonable
> set of features ("reasonable" being highly subjective here) is a
> non-trivial task.

I hoped that using a package like 'lsp' [1] it would manageable. But I
have not tried.


Best,
Henning



[1] https://hackage.haskell.org/package/lsp
Reply all
Reply to author
Forward
0 new messages