emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using header-args to set default TODO state?


From: Ihor Radchenko
Subject: Re: Using header-args to set default TODO state?
Date: Thu, 05 Jan 2023 11:22:50 +0000

Michael Maurer <maurer.michael@gmail.com> writes:

> I've been wondering if it's possible to define a default todo-state
> for all items appearing under a headline, like
>
> * shopping list
> :PROPERTIES:
> :header-args: todo-state: TOBUY
> :END:
> ** bananas
> ** bread
>
> so when calling org-agenda both bananas and bread have the todo-state
> TOBUY applied to them. Obviously placing "todo-state" after
> :header-args: doesn't work, it's just an example of how I imagine it
> could work.

You can use `org-agenda-custom-commands' and define an appropriate
matcher.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]