[BUG] Crash when using --trace option

2014-12-01 Thread Alexis
Hi all, I've build a debug version of ledger HEAD (4ee5329) and it crashes when I try to use it with a value greater than 9 for its --trace option. Steps to reproduce: * Run ledger with the --trace option, e.g.: % ./ledger -f test/input/sample.dat reg --trace 10 Expected result: Ledger show

Access timelog checkin datetime from python other entries

2014-12-01 Thread Alexis
Hi all, I'd like to access the checkin and checkout time for a post from python. Looking at src/post.cc there is a checkin variable available, unfortunately this is not exposed to python in src/py_post.cc. I've added .add_property("checkin", &post_t::checkin) to src/py_post.cc, which allows be

Re: Same request at different moments in time

2014-12-01 Thread Simon Michael
On 11/26/14 12:45 PM, Sebastien Vauban wrote: In order to display (for example) the cash account every day of the month, or the income every month of the year, is there a shortcut to do so directly from Ledger, or do we have to use a shell script such as: printf "Month \tIncome\n" for

Re: Standardise ledger file extension

2014-12-01 Thread Simon Michael
I agree with Alexis. I think having a standard recommended file extension or two has a number of benefits, even if we don't all choose to use it. It can help with new users, tooling, quick comprehension of pastes, eg to know when examples are Ledger- or hledger-specific. (I sometimes wish I ha

Re: Standardise ledger file extension

2014-12-01 Thread John Wiegley
> Simon Michael writes: > (I sometimes wish I had picked .hledger as the recommended extension for > hledger files instead of .journal. I'd be inclined to change this especially > if Ledger, Beancount & co. are doing the same.) If I had to pick an extension, it would probably be .ledger, but

Re: Standardise ledger file extension

2014-12-01 Thread Craig Earls
"or two" Simon you crack me up. We can put a recommendation in the docs. But I don't want anything more than a suggestion. On Monday, December 1, 2014, Simon Michael wrote: > I agree with Alexis. I think having a standard recommended file extension > or two has a number of benefits, even if we

Re: Standardise ledger file extension

2014-12-01 Thread Simon Michael
On 12/1/14 10:24 AM, Craig Earls wrote: "or two" Heheh, well I figure if it was long you'd have to also have a short alternative. Better two standard extensions than a bunch of them with unclear status. -- --- You received this message because you are subscribed to the Google Groups "Led

Re: Standardise ledger file extension

2014-12-01 Thread Alexis
Hello Craig Earls on Mon, Dec 01, 2014 at 07:24:49PM CET, you wrote: > We can put a recommendation in the docs. But I don't want anything more > than a suggestion. I would think that having all sample files and the documentation use the recommendation would make a much better recommendation. I'd

Re: Standardise ledger file extension

2014-12-01 Thread Alexis
Hello John Wiegley on Mon, Dec 01, 2014 at 07:24:11PM CET, you wrote: > If I had to pick an extension, it would probably be .ledger, but then I > wouldn't use it so that's what I don't recommend it. Hehe, so what do you use for your ledger and timelog journal files, John? Alexis -- --- You r

Re: Standardise ledger file extension

2014-12-01 Thread John Wiegley
> Alexis writes: > Hello John Wiegley on Mon, Dec 01, 2014 at 07:24:11PM CET, you wrote: >> If I had to pick an extension, it would probably be .ledger, but then I >> wouldn't use it so that's what I don't recommend it. > Hehe, so what do you use for your ledger and timelog journal files, J

Re: Same request at different moments in time

2014-12-01 Thread thierry
Hi Sebastien, The output of your script, can be very closely reproduced using command: ledger --total-data --begin=2012 --monthly reg Income This can be shortened as: ledger -J -b 2012 -M reg Income FWIW, you could also "display" the result with the 'report' script that can be found in 'contr

Re: Standardise ledger file extension

2014-12-01 Thread Craig Earls
Alexis, if you really want this, go ahead and work up a pull request. On Mon, Dec 1, 2014 at 12:05 PM, John Wiegley wrote: > > Alexis writes: > > > Hello John Wiegley on Mon, Dec 01, 2014 at 07:24:11PM CET, you wrote: > >> If I had to pick an extension, it would probably be .ledger, but th

Re: ledger-mode does not colorize effective date transactions as other entries

2014-12-01 Thread Craig Earls
Should be fixed in the latest push. On Sun, Nov 30, 2014 at 2:28 PM, guivho wrote: > > > On Sunday, November 30, 2014 7:51:18 PM UTC+1, Craig Earls wrote: >> >> This is a known bug, I am working on it. >> > > Ok Craig, it definitely isn't a showstopper, there's no hurry at all, I > just felt I n