Re: Cookbook comment/question

2019-01-11 Thread Jonathan Klabunde Tomer
Thanks!

On Fri, Jan 11, 2019, 01:17 Martin Blais  On Fri, Jan 11, 2019 at 11:04 AM  wrote:
>
>> Was going to leave this as a doc comment on the cookbook, but it seems to
>> be view-only.
>>
>
> I had to lock them down, because I was getting too much accidental
> fingerfart to fix every day.
>
>
> In the beancount cookbook, and pervasively throughout the documentation,
>> you recommend naming e.g. dividend income accounts with names like
>> Income:US:ETrade:Dividends.
>>
>> This surprises me: I would expect you would prefer a name like
>> Income:US:Dividends:ETrade instead. It's true that you will need to have
>> these items broken out by account for tax reporting, but you want the
>> totals by income/expense taxation category (dividend, P, wages, interest)
>> as well, and I assume it's at least marginally more convenient to get
>> reports for a level of hierarchy than for an arbitrary filter. (Of course
>> it is easy to slice things up however I want when I need to; this is what
>> drew me to beancount in the first place. So the question is really just
>> about what makes for more useful/convenient defaults.)
>>
>
> That's right.
>
>
>>
>> Am I missing an important use for which it's good to have income/expense
>> category nested below, rather than above, account?
>>
>
> I think it's up to how you want the hierarchical reporting to work for you.
> You can view these account name components as "tags", and as you surmise,
> you can filter them arbitrarily using regexps.
> However, there's currently only one "hierarchical" way to break these
> down, and that's fixed off the order of the names in how you select your
> account names. Note that if you need multiple hierarchies, you could write
> a plugin to rewrite all your account names to a different ordering, or
> build some custom reporting code that does that for you. That's always an
> option.
>
> But essentially as Stefano mentions, the right logical view for the
> contents of your Beancount file is as a gigantic table of postings, and the
> process of reporting is first filtering those rows, and then doing
> aggregations/breakdowns ("group by", summing the contents with the
> inventory semantics). One could in theory do transformations on the account
> name to pull out particular subsets of components (e.g. Dividend,
> CapitalGain, etc. could be one such group). Generally speaking regular
> expressions will take you a long way and I haven't found it worthwhile to
> push in the direction of formalizing the account name components yet.
>
> Cheers,
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Beancount" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beancount/MqIk8nfgtx0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beancount+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAK21%2BhOW-0eExDheYFZDRtcN0G%3DKDpJSkeMaUcurcd3VCa%3DAxA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CABCZL8SE%2BEFyq69o5Y3-7HsDYgjEVBx0bhT2DkeucJfZwXhApA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [emacs] using ledger-mode for beancount

2019-01-11 Thread Martin Blais
That seems like a useful thing to investigate.
I personally would welcome making Beancount a major mode if that interacts
well with it and it serves most people.
It seems to be the most intuitive way for most people.
I only ever use org-mode major + beancount minor myself.
If I recall, Stefan once made a case that it ought to be a major mode (over
a dinner heavy on raclette cheese some years ago, if my memory serves).

What major mode do people use, and would anyone object strongly and if so
why?




On Thu, Jan 10, 2019 at 5:49 AM Júlio Maranhão 
wrote:

> On Sunday, 6 January 2019 18:43:46 UTC-2, Martin Blais wrote:
>>
>> Is there a way to have basic org functionality (folding) with it as a
>> major mode?  If so happy to convert
>>
>
> Yes. It's called orgstruct-mode or orgstruct++-mode (
> https://orgmode.org/manual/Orgstruct-mode.html). I use it because I also
> don't like to associate a beancount file with org. For instance, I don't
> like my yas snippets mixed with org snippets. Indeed this is an old emacs
> issue about major (only one per buffer) vs minor modes (many per buffer).
> Just see web development with emacs: an html file can embbed html, css,
> javascript, php, etc. There are many solutions, no one prevalent. But I
> would like to see a beancount major-mode. I think it deserves.
>
> P.S.: I'll made another topic about my opinions regarding general
> beancount development, design, etc. Don't want to mix here.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beancount+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/4cb40f6a-6ea0-49aa-92e8-bf5a0801ca6a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhO6wR2tmwP%2BpFjytXDx0c9LTv0SjmieQTm8evpoi5Yfww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.