From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: Org-mode Habit with Varying Description Date: Mon, 20 Oct 2014 13:03:34 -0700 Message-ID: <87h9yyy0dl.fsf@uw.edu> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgJBP-0005rm-B6 for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 16:04:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgJBH-0005qW-MX for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 16:03:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:38078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgJBH-0005qD-F4 for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 16:03:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XgJBG-0002wv-Kf for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 22:03:50 +0200 Received: from 174-24-239-229.tukw.qwest.net ([174.24.239.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Oct 2014 22:03:50 +0200 Received: from algebrat by 174-24-239-229.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Oct 2014 22:03:50 +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 Daya Atapattu writes: > Is there a way to create a habit that picks-up the description from a > list? > > I like to schedule studying a book: It would be scheduled as "Read > pages 100-125." Then the next day it should read "Read pages 126-150." > The description of the habit varies; org-mode picks that up > sequentially from a list. > > Is that possible? > > Regards, > > - Daya I was scheduling all my TODOs for the day and using agenda view to clock my progress through them. But I've been skimming once again through org-mode users' descriptions of how they use org-mode, and one mentioned only to use scheduling for things like appointments. So my advice will step around your use of habits, although I do this without recently haing adopted org-habits into my workflow, so maybe I am missing something. So instead of scheduling, I would have you tag these headlines, or similarly set them under a tree with a CATEGORY, and simly toggle their TODO state as you want to work on them. Here is an example of a custom-command: #+BEGIN_SRC emacs-lisp (setq org-agenda-custom-commands '(("B" "Books" ((tags-todo "-nofilter")) ((org-agenda-category-filter-preset '("+read")) ;; or ;; (org-agenda-tags-filter-preset '("+read")) )) #+END_SRC So if you think you will keep the reading notes in a few concentrated places, then CATEGORY should do, whereas if you think you would have related headlines strewn about, the tag-filter may be better. Here is an example org-file: #+BEGIN_SRC org #+TODO: TODO(t) NEXT | DONE #+TAGS: read(r) other * book reading :PROPERTIES: :CATEGORY: read :VISIBILITY: children :END: ** DONE pages 100-125 :read: ** NEXT pages 125-150 :read: ** TODO pages 150-175 :read: #+END_SRC If you'd like to experiment with an additional agenda view for clocking, try #+BEGIN_SRC emacs-lisp (agenda "" (org-agenda-span 'day) (org-agenda-log-mode-items '(closed clock state)) (org-agenda-start-with-log-mode t) (org-agenda-skip-scheduled-if-done t)) #+END_SRC You may want to tweak so that you can get a view of total clocked or just a view of those days where you read. It's not org-habits, but it could still potentially show you your progress in way that can motivate. -- Brady