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

Add interactive mode to hledger #2154

Open
markokocic opened this issue Jan 12, 2024 · 3 comments
Open

Add interactive mode to hledger #2154

markokocic opened this issue Jan 12, 2024 · 3 comments
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. cli Command line parsing, options, arguments and suchlike. performance Anything performance-related (run time, memory usage, disk space..)

Comments

@markokocic
Copy link
Collaborator

It would be nice if hledger supported interactive mode, like ledger when started without parameters.

This would allow executing multiple commands interactively in one session, possibly without incurring performance penalty as in #2153

@markokocic markokocic added the A-WISH Some kind of improvement request, hare-brained proposal, or plea. label Jan 12, 2024
@simonmichael
Copy link
Owner

I'd be open to adding this mode to the CLI. hledger-ui and hledger-web are another way to avoid re-parsing for each report.

@simonmichael simonmichael added cli Command line parsing, options, arguments and suchlike. performance Anything performance-related (run time, memory usage, disk space..) labels Jan 12, 2024
@markokocic
Copy link
Collaborator Author

If journal parsing is the bottleneck, it may make sense to cache the outcome of parsing between invocations.

For example, after the parsing step to save already processed structure on disk alongside the journal file, and next time load it instead of the journal, if journal timestamp didn't change.

@simonmichael
Copy link
Owner

Ledger did this back in the day, but dropped it again since it wasn't worth the added complications.

I agree it would be interesting to at least try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. cli Command line parsing, options, arguments and suchlike. performance Anything performance-related (run time, memory usage, disk space..)
Projects
None yet
Development

No branches or pull requests

2 participants