From: Matt Lundin <mdl@imapmail.org>
To: Joseph Buchignani <joseph.buchignani@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"
Date: Tue, 09 Nov 2010 15:26:32 -0500 [thread overview]
Message-ID: <874obqnszr.fsf@fastmail.fm> (raw)
In-Reply-To: <AANLkTinorhws1MJB6m13V9UmN_byjxGQawnprBgn8JT4@mail.gmail.com> (Joseph Buchignani's message of "Mon, 6 Sep 2010 21:56:41 +0800")
Hi Joseph,
Joseph Buchignani <joseph.buchignani@gmail.com> writes:
> Summary: I would like habits to automatically be marked as the todo
> keyword "HABIT" instead of "TODO" after I mark them "DONE"
>
> Reasons:
> I want to keep my habits separate from my tasks. But they display
> together on my TODO list. This makes it hard to keep track of what's a
> habit and what's not.
>
> I could change a setting so that scheduled tasks are no longer
> considered open. But then I lose the ability to see all my habits in a
> list on the TODO view.
>
> Also, I like to see habits clearly marked HABIT instead of TODO in my
> org outline.
>
> Keeping the keywords separated fits better with my workflow. Normally I
> only need to work on habits from within the org agenda, not the todo
> list. For example, I start the day by executing scheduled tasks, then
> priority A tasks, then priority A habits, etc.
>
> Is there some setting I can change to do this? Right now I am doing it
> manually.
Apologies for the late reply, but one simple way to make sure repeating
habits return to a HABIT state is to add a REPEAT_TO_STATE property to
each of your habits. (Of course, HABIT needs to be defined in your
org-todo-keywords.)
E.g.,
--8<---------------cut here---------------start------------->8---
* HABIT Run
SCHEDULED: <2010-11-09 Tue .+1d/2d>
:PROPERTIES:
:STYLE: habit
:REPEAT_TO_STATE: HABIT
:END:
--8<---------------cut here---------------end--------------->8---
If you want to do this quickly for all existing habits you could
evaluate the following:
--8<---------------cut here---------------start------------->8---
(org-map-entries '(org-set-property "REPEAT_TO_STATE" "HABIT")
"+STYLE=\"HABIT\"" 'agenda)
--8<---------------cut here---------------end--------------->8---
Best,
Matt
next prev parent reply other threads:[~2010-11-09 20:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 13:56 Force completed habits to revert to "HABIT" todo keyword instead of "TODO" Joseph Buchignani
2010-09-06 22:09 ` Łukasz Stelmach
2010-11-09 20:26 ` Matt Lundin [this message]
2010-11-09 20:37 ` Joseph Buchignani
2010-11-09 20:58 ` David Maus
2010-11-09 21:09 ` David Maus
2010-11-09 21:17 ` Joseph Buchignani
2010-11-09 21:27 ` David Maus
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=874obqnszr.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=Emacs-orgmode@gnu.org \
--cc=joseph.buchignani@gmail.com \
/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).