I'd like to start using ledger-sort-buffer, specifically in order to use it with dklrt. However, it doesn't work well with my journal for two reasons:
(a) I heavily use the "Y" feature so that I can write my dates as just '2/7', and I don't consistently write my dates with leading 0s. ledger-sort looks at the first 10 characters of the transaction, so it gets confused by both of these. I guess I can use the "Ledger-mode: Start sort" feature written after my last Y line to sort of alleviate this, but it still means it will re-sort entries from the same day for no reason. I really do like being able to physically type my dates in shorthand, but I wouldn't mind if they got automatically converted to longhand when I save or something. Is there date normalization code hidden inside ledger-mode that I haven't found yet? (b) In general I would like any comments that I write before a txn to move along with that txn. ledger-sort seems to consider non-txn comments to be "background noise" that stays in place as the txn is sorted. I think I just need to pass slightly different functions to sort-subr to make this happen, but I'm not exactly sure what that is. (I think it's roughly "use nil as the nextrecfun, end-of-xact as the endrecfun, change startkeyfun to run next-act first" or something but not positive.) If I'm not the only one who would want this, maybe I could add this as a customization? -- glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.