emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Using header-args to set default TODO state?
@ 2023-01-04 12:04 Michael Maurer
  2023-01-05 11:22 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Maurer @ 2023-01-04 12:04 UTC (permalink / raw)
  To: Org Mode List

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using header-args to set default TODO state?
  2023-01-04 12:04 Using header-args to set default TODO state? Michael Maurer
@ 2023-01-05 11:22 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-01-05 11:22 UTC (permalink / raw)
  To: Michael Maurer; +Cc: Org Mode List

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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-05 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04 12:04 Using header-args to set default TODO state? Michael Maurer
2023-01-05 11:22 ` Ihor Radchenko

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).