From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Habit tracking and table data Date: Wed, 02 May 2012 17:52:43 -0400 Message-ID: <87mx5q9ro4.fsf@norang.ca> References: <8762ceby63.fsf@norang.ca> <87mx5q7dnj.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPhTd-0006qX-OC for emacs-orgmode@gnu.org; Wed, 02 May 2012 17:52:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPhTb-0003Zo-SC for emacs-orgmode@gnu.org; Wed, 02 May 2012 17:52:49 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:35428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPhTb-0003Ze-OV for emacs-orgmode@gnu.org; Wed, 02 May 2012 17:52:47 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.165.89] helo=mail.norang.ca) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SPhTa-00033r-C5 for emacs-orgmode@gnu.org; Wed, 02 May 2012 21:52:46 +0000 In-Reply-To: <87mx5q7dnj.fsf@dod.no> (Steinar Bang's message of "Wed, 02 May 2012 18:26:08 +0200") 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: emacs-orgmode@gnu.org Steinar Bang writes: >>>>>> Bernt Hansen : > >> For these types of things I just stick a table in the habit org-mode >> entry and edit it directly, then mark it done without capturing a note. > > Umm... could you provide an example...? The habit entry is just like any other task... so it can contain whatever you need. I just stick a table in the entry and edit it directly: --8<---------------cut here---------------start------------->8--- ** TODO Some habit I want to track SCHEDULED: <2012-04-30 Mon .+1d> :LOGBOOK:... :PROPERTIES: :STYLE: habit :LAST_REPEAT: [2012-04-29 Sun 18:20] :END: [2012-03-19 Mon 07:30] and some table data I want to keep | | Date | Datum | Change | |---+------------------+-------+--------| | # | [2012-04-14 Sat] | 98 | 0.0 | | # | [2012-04-16 Mon] | 103 | 5.0 | | # | [2012-04-17 Tue] | 105 | 2.0 | | # | [2012-04-19 Thu] | 101 | -4.0 | | # | [2012-04-20 Fri] | 89 | -12.0 | | # | [2012-04-29 Sun] | 94 | 5.0 | |---+------------------+-------+--------| | | | | -4.0 | | ^ | | | total | #+TBLFM: $4=$3-@-1$3;%.1f::@2$4=0;%.1f::$total=vsum(@-I..@-II);%.1f --8<---------------cut here---------------end--------------->8--- When this particular task in on my agenda I hit RET on it to visit it, update the table, and then mark it DONE. By default marking it done creates a log entry with just the timestamp (no log note). HTH, Bernt