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:
- hledger-ui --watch
- Go to "Cash accounts"
- Go to "assets:bank:checking". Now you should see 1 transaction
- Press E and change the transaction amount, save and exit the editor. The change is reflected in the view
- Now go into transaction detail
- Edit the transaction again with E. This view will not have updated to show the latest values