lakshayg · GitHub

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

Read the original on github.com ↗