On Tue, May 20, 2014 at 9:00 AM, Martin Blais <[email protected]> wrote:

> On Tue, May 20, 2014 at 6:06 AM, Stefano Zacchiroli <[email protected]>
> wrote:
>
>> On Sat, May 17, 2014 at 11:37:01PM -0400, Martin Blais wrote:In
>> particular, I'm personally annoyed that when I batchly update ledger
>>
> files to rename accounts, transaction amounts easily become unaligned.
>> So, before (git) committing I go through them with ledger-mode and C-c
>> C-q them to fix alignment.  I've written Python code to emit properly
>> aligned transactions when generating transaction templates from my bank
>> statements, but I haven't gone as far as doing that around plain old
>> sed.
>>
>> Do your scripts take care of that too?
>>
>
> Not yet but it has been annoying me too.
>
>
>
>> Do we need a ledger-sed or something of the sort?  Or maybe something
>> simpler, such as a ledger-indent?
>
>
> I need one.  I'll write one. This is an easy thing to do... I'll align on
> the first currency to the position of the longest account + a few chars.
>

Here's a quick and dirty one that works for my syntax:
https://hg.furius.ca/public/beancount/file/743ca856e985/experiments/bean-format
(or as  beancount/experiments/bean-format  in beancount source code)

I'd be happy to extend it to support Ledger syntax to (or accept a patch).

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to