From 766657cb095da680fdd9a69ffb0d88634751b031 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 24 May 2023 12:37:46 -1000 Subject: [PATCH] ;doc: forecasting: mention --verbose-tags --- hledger/hledger.m4.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index dc937b7a7..8be33d87b 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -5025,9 +5025,11 @@ Balance changes in 2023-05-01..2023-09-30: ## Forecast tags -The `generated-transaction` tags are added by hledger; they indicate transactions generated by --forecast, and show which rule was responsible. If you ever need to match forecast transactions, you could use `tag:generated-transaction` in a query. +Forecast transactions generated by --forecast have a hidden tag, `_generated-transaction`. +So if you ever need to match forecast transactions, you could use `tag:_generated-transaction` (or just `tag:generated`) in a query. -(The same tag is also present, hidden, with the name `_generated-transaction`. In some automation scenarios you might have previously saved forecasted transactions in the journal, and this hidden tag could be used to match the transactions generated "just now".) +For troubleshooting, you can add the `--verbose-tags` flag. Then, visible `generated-transaction` tags will be added also, +so you can view them with the `print` command. Their value indicates which periodic rule was responsible. ## Forecast period, in detail