Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ledger-hledger-mode #398

Open
DamienCassou opened this issue Feb 4, 2024 · 3 comments
Open

Adding ledger-hledger-mode #398

DamienCassou opened this issue Feb 4, 2024 · 3 comments
Labels

Comments

@DamienCassou
Copy link
Contributor

Hi,

in hledger chat on matrix, I see several people using ledger-mode with hledger. I also do. There is a completely different hledger-mode but some people prefer ledger-mode anyway.

The ledger-mode package doesn't perfectly work with hledger. For example, it is not possible to type a payee in `ledger-add-transaction' because the command calls ledger with some options that are not
available in hledger. Another limitation is that clicking on a transaction in a report doesn't show the transaction in the journal file. There are more little problems like this.

I was wondering if a ledger-hledger-mode would be appropriate inside your repository. It would be a minor mode that configures different things so ledger-mode works great with hledger. I guess some
refactorings of existing code will be necessary as well to avoid hacking ugly workarounds in ledger-hledegr-mode.

What do you think?

@enderw88
Copy link
Member

enderw88 commented Feb 4, 2024 via email

@josephmturner
Copy link
Contributor

josephmturner commented Mar 10, 2024

it is not possible to type a payee in `ledger-add-transaction' because the command calls ledger with some options that are not available in hledger.

Does #392 address this concern at all? (I also use hledger with ledger-mode)

No, it does not.

@bcc32 bcc32 added the hledger label Mar 19, 2024
@jladdjr
Copy link

jladdjr commented May 19, 2024

This year I switched from ledger to hledger and I've wondered about this same question off-and-on.

  • hledger-mode is missing features that are really helpful in ledger-mode (ability to reconcile, for example, unless I've totally overlooked the feature)
  • ledger-mode currently pairs fairly well with hledger, but are there definitely some areas where the two aren't compatible (running into errors with C-c C-a for adding a transaction is the one I run into the most)

Love the idea of somehow making ledger-mode compatible with multiple versions of ledger. I'm still developing a working understanding of elisp and emacs packages in general, but the idea of using a minor mode sounds interesting. I'm not exactly sure what it would look like, but it seems like there should be a way to create adapters to support different ledger behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants