emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Harum Budi <harumbudi@gmail.com>
To: Harum Budi <harumbudi@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Tips for using orgmode + ledger to record events?
Date: Fri, 1 Mar 2013 17:09:47 +0700	[thread overview]
Message-ID: <CAJdJKz5DmiXyuwxOsR9UGz-Zu4XPu0znCLAjH_bcbmTWaSSa-A@mail.gmail.com> (raw)
In-Reply-To: <87r4jzy09c.fsf@ucl.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 3619 bytes --]

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 <e.fraga@ucl.ac.uk>

> 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
>
>

[-- Attachment #2: Type: text/html, Size: 4814 bytes --]

  reply	other threads:[~2013-03-01 10:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 10:29 Tips for using orgmode + ledger to record events? Harum Budi
2013-03-01  8:47 ` Eric S Fraga
2013-03-01 10:09   ` Harum Budi [this message]
2013-03-01 13:11     ` Eric S Fraga
2013-03-01 14:17       ` Jeffrey Brent McBeth
2013-03-01 20:13       ` Viktor Rosenfeld
2013-03-04  8:52         ` Eric S Fraga
2013-03-04 21:06           ` Viktor Rosenfeld
2013-03-05  8:44             ` Eric S Fraga
2013-03-05 18:25               ` Viktor Rosenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJdJKz5DmiXyuwxOsR9UGz-Zu4XPu0znCLAjH_bcbmTWaSSa-A@mail.gmail.com \
    --to=harumbudi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).