From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Org-mode Habit with Varying Description
Date: Mon, 20 Oct 2014 13:03:34 -0700 [thread overview]
Message-ID: <87h9yyy0dl.fsf@uw.edu> (raw)
In-Reply-To: CAMaREXYajGgfuX69Z44+NzLW7tBi6PAMdRHTjobqBcndR8My=Q@mail.gmail.com
Daya Atapattu <atapattud@gmail.com> 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
next prev parent reply other threads:[~2014-10-20 20:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 14:33 Org-mode Habit with Varying Description Daya Atapattu
2014-10-20 14:52 ` Bastien
2014-10-20 15:46 ` Daya Atapattu
2014-10-20 16:02 ` Jorge A. Alfaro-Murillo
2014-10-20 17:37 ` Pete Ley
2014-10-21 0:34 ` Eric Abrahamsen
2014-10-21 12:21 ` Samuel Loury
2014-10-21 16:29 ` Eric Abrahamsen
2014-10-24 3:42 ` Pete Ley
2014-10-26 15:51 ` Eric Abrahamsen
2014-10-28 13:28 ` Nicolas Goaziou
2014-10-28 13:41 ` Eric Abrahamsen
2014-10-28 15:01 ` Eric Abrahamsen
2014-10-28 16:22 ` Nicolas Goaziou
2014-10-28 16:38 ` Eric Abrahamsen
2014-10-29 20:48 ` Nicolas Goaziou
2014-10-20 19:13 ` Melleus
2014-10-20 20:03 ` Brady Trainor [this message]
2014-10-21 15:37 ` Michael Brand
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=87h9yyy0dl.fsf@uw.edu \
--to=algebrat@uw.edu \
--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).