From 27e2b0a615aa38d42108e3ddaa8fa294e84d83b4 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 5 Jan 2017 16:05:09 -0800 Subject: [PATCH] rewrite: note some todos --- extra/hledger-rewrite.hs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extra/hledger-rewrite.hs b/extra/hledger-rewrite.hs index f92b9e6ce..6543a2bda 100755 --- a/extra/hledger-rewrite.hs +++ b/extra/hledger-rewrite.hs @@ -25,10 +25,15 @@ Note the single quotes to protect the dollar sign from bash, and the two spaces See the command-line help for more details. Currently does not work when invoked via hledger, run hledger-rewrite[.hs] directly. -Needs to work on unbalanced entries, eg while editing one. -/ Tested-with: hledger HEAD ~ 2016/3/2 +Related: https://github.com/simonmichael/hledger/issues/99 + +TODO: +- should allow regex matching and interpolating matched name in replacement +- should apply the rule for each matched posting within a transaction, if there's more than one +- should be possible to use this on unbalanced entries, eg while editing one + |-} import qualified Data.Text as T