From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harum Budi Subject: Re: Tips for using orgmode + ledger to record events? Date: Fri, 1 Mar 2013 17:09:47 +0700 Message-ID: References: <87r4jzy09c.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec50161250151d304d6da3515 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBMuV-00069D-Gu for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 05:09:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBMuS-0005FF-CZ for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 05:09:51 -0500 Received: from mail-vc0-f173.google.com ([209.85.220.173]:60315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBMuS-0005F8-6S for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 05:09:48 -0500 Received: by mail-vc0-f173.google.com with SMTP id fy27so1870509vcb.32 for ; Fri, 01 Mar 2013 02:09:47 -0800 (PST) In-Reply-To: <87r4jzy09c.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Harum Budi , emacs-orgmode@gnu.org --bcaec50161250151d304d6da3515 Content-Type: text/plain; charset=ISO-8859-1 I was not being clear at all, sorry. Let me rephrase, but bear with me as English is my secondary language. For more than a decade, I've maintained a log.txt file with content like this (events are fictional): 2005-01-02 [friend] Met high school buddy Frank, talked about A, B, C. He is now married, his wife's name is Laura. 2006-04-06 [gadget] Bought Nokia Communicator 9300 for $500. 2007-12-30 [health] Took worm medicine, along with all family members @1000mg (Fido included, 125mg). 2008-10-20 -2008-10-22 [vacation] Went to Bali with Denise. Took many photos (burnt to CD #2341). This log helps me: * remember when I bought stuffs (not all purchases are being recorded of course). Sometimes I update these records to note service/repair, when I resold the stuffs to others, when the stuff got stolen, etc. * remember when I got sick, had my blood tested, donated blood, had doctor/dentist appointment, etc. * remember when I last meet people (again, not all people). The format of the file makes it convenient to grep. I plan to convert this to log.org with format like this: * [2013-02-21 ] Met high school buddy Lucie :friend: * [2013-03-01 ] Fido died :( :pet: The last 1-2 years of using org/org-mode (and later, ledger-cli) has brought me much joy because of the outline, richer formatting, syntax highlighting of timestamps, etc. But it also leads to some issues. * Duplication. Financial events like buying stuffs are now recorded twice, once in log.org and another in ledger journal. Should I just stop logging in log.org for this? Or should I use Org links to link to the appropriate ledger journal entry? Past events that are in the reminder are also now in the LOGBOOK drawer, but not all of them yet. Some events do not have reminders so they will still need log.org. * Sometimes I want to write a longer entry than just a long line. The new log.org format is nice and will let me put detailed note under each heading. But then I will lose the nice property of one-record-on-each-line and grep-ping things will not be as straightforward. If this is still unclear, it is because I'm still not sure how to organize it all. I have hundreds of .org files now and things are getting rather messy. But I guess my main issue is: I still want to maintain log.txt/ log.org and would like to have some scripts/utilities to automatically add records to this file instead of me having to do it manually. log.txt + grep has been quite useful for me for quick-searching/counting/viewing past events, and I don't think I want to lose this. But other thoughts and ideas are certainly welcome. Harum 2013/3/1 Eric S Fraga > Harum, > > I am not entirely sure what you are asking. I use ledger with org all > the time to track my finances. I use babel for this so have entries > that look like this: > > #+name: expenses > #+begin_src ledger :noweb yes > <> > <> > <> > <> > <> > <> > #+end_src > > and then have individual blocks for each of these sub-items. I then > also have something that brings everything together, including expenses > (as noted above), income, etc.: > > #+name: assets > #+begin_src ledger :cmdline -V -s bal assets :results output :noweb yes > <> > <> > <> > <> > <> > #+end_src > > I use :noweb to allow me to build up the complete ledger file. > > HTH, > eric > > -- > : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D > : in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55 > > --bcaec50161250151d304d6da3515 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I was not being clear at all, sorry. Let me rephrase,= but bear with me as English is my secondary language.

=
For more than a decade, I've maintained a log.txt file with conten= t like this (events are fictional):

2005-01-02 [friend] Met high school buddy Frank, talked= about A, B, C. He is now married, his wife's name is Laura.
= 2006-04-06 [gadget] Bought Nokia Communicator 9300 for $500.
2007-12-30 [health] Took worm medicine, along with all family members @1000= mg (Fido included, 125mg).
2008-10-20 -2008-10-22 [vacation] Went= to Bali with Denise. Took many photos (burnt to CD #2341).

This log helps me:
* remember when I bought stuffs (no= t all purchases are being recorded of course). Sometimes I update these rec= ords to note service/repair, when I resold the stuffs to others, when the s= tuff got stolen, etc.
* remember when I got sick, had my blood tested, donated blood, had do= ctor/dentist appointment, etc.
* remember when I last meet people= (again, not all people).

The format of the file m= akes it convenient to grep. I plan to convert this to log.org with format like this:

* [2013-02-21 ] Met high school buddy Lucie =A0=A0 :fri= end:
* [2013-03-01 ] Fido died :( =A0 :pet:

The last 1-2 years of using org/org-mode (and later, ledger-= cli) has brought me much joy because of the outline, richer formatting, syn= tax highlighting of timestamps, etc. But it also leads to some issues.

* Duplication. Financial events like buying stuffs are = now recorded twice, once in log.org and anot= her in ledger journal. Should I just stop logging in log.org for this? Or should I use Org links to link to the appropr= iate ledger journal entry?

Past events that are in the reminder are also now in th= e LOGBOOK drawer, but not all of them yet. Some events do not have reminder= s so they will still need log.org.

* Sometimes I want to write a longer entry than just a long = line. The new log.org format is nice and wil= l let me put detailed note under each heading. But then I will lose the nic= e property of one-record-on-each-line and grep-ping things will not be as s= traightforward.

If this is still unclear, it is because I'm still n= ot sure how to organize it all. I have hundreds of .org files now and thing= s are getting rather messy. But I guess my main issue is: I still want to m= aintain log.txt/log.org and would like to ha= ve some scripts/utilities to automatically add records to this file instead= of me having to do it manually. log.txt + grep has been quite useful for m= e for quick-searching/counting/viewing past events, and I don't think I= want to lose this.

But other thoughts and ideas are certainly welcome.

Harum


<= div class=3D"gmail_quote">2013/3/1 Eric S Fraga <e.fraga@ucl.ac.uk>=
Harum,

I am not entirely sure what you are asking. =A0I use ledger with org all the time to track my finances. =A0I use babel for this so have entries
that look like this:

#+name: expenses
#+begin_src ledger :noweb yes
<<expenses-car>>
<<expenses-council>>
<<expenses-credit-cards>>
<<expenses-insurance>>
<<expenses-taxes>>
<<expenses-utilities>>
#+end_src

and then have individual blocks for each of these sub-items. =A0I then
also have something that brings everything together, including expenses
(as noted above), income, etc.:

#+name: assets
#+begin_src ledger :cmdline -V -s bal assets :results output :noweb yes
<<commodity-prices>>
<<opening-balances>>
<<income>>
<<savings>>
<<expenses>>
#+end_src

I use :noweb to allow me to build up the complete ledger file.

HTH,
eric

--
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55


--bcaec50161250151d304d6da3515--