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

hledger-ui: Transaction view does not update immediately after editing with "E" #2288

Open
lakshayg opened this issue Nov 20, 2024 · 2 comments
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. ui The hledger-ui tool.

Comments

@lakshayg
Copy link

I was trying to edit some transactions from hledger-ui using the E key and noticed something strange.

When I press "E" in the register view and update the transaction, the change appears in the ui as soon as the editor is closed. However, if I go into the transaction detail and then edit it with "E", the change does not appear immediately, I need to go out of the view and then back in before the change shows in the ui.

Here's a sample ledger:

account assets:bank:checking  ; type:C
account expenses:food

commodity $1,000.00

2023-02-05  coffee company
  assets:bank:checking            $-7
  expenses:food

The steps:

  1. hledger-ui --watch
  2. Go to "Cash accounts"
  3. Go to "assets:bank:checking". Now you should see 1 transaction
  4. Press E and change the transaction amount, save and exit the editor. The change is reflected in the view
  5. Now go into transaction detail
  6. Edit the transaction again with E. This view will not have updated to show the latest values
Screen.Recording.2024-11-21.at.1.00.45.AM.mov
@simonmichael simonmichael added the ui The hledger-ui tool. label Nov 21, 2024
@simonmichael
Copy link
Owner

Thanks for the report. g would probably update the screen also.

The E handling in rsHandle and tsHandle looks similar. But this nearby comment seems to describe a similar symptom, I don't remember the cause.

@simonmichael simonmichael added the A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. label Nov 21, 2024
@lakshayg
Copy link
Author

I just tried using g to reload the screen but it does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. ui The hledger-ui tool.
Projects
None yet
Development

No branches or pull requests

2 participants