emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Tips for using orgmode + ledger to record events?


From: Harum Budi
Subject: Re: [O] Tips for using orgmode + ledger to record events?
Date: Fri, 1 Mar 2013 17:09:47 +0700

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 <address@hidden>
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
<<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.  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
<<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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]