* Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format?
@ 2011-04-28 15:12 Anupam Sengupta
2011-05-06 13:00 ` Matt Lundin
0 siblings, 1 reply; 2+ messages in thread
From: Anupam Sengupta @ 2011-04-28 15:12 UTC (permalink / raw)
To: emacs-orgmode
Hello,
In my custom agenda block, I wanted to distinguish between SCHEDULED and
DEADLINE items using a small character flag. The docstring for
`org-agenda-prefix-format' mentions %s as the one to use for the
scheduled/deadline string (as is used in the default agenda) - however,
this string does not seem to be working for me (orgmode 7.5).
As an example of a custom agenda block:
(tags-todo "+TODO=\"TODO\"+SCHEDULED>=\"<today>\"+SCHEDULED<\"<tomorrow>\"|+TODO=\"TODO\"+DEADLINE>=\"<today>\"+DEADLINE<\"<tomorrow>\"|+TODO=\"TODO\"+TIMESTAMP>=\"<today>\"+TIMESTAMP<\"<tomorrow>\""
((org-agenda-overriding-header "\nToday's Action Items\n====================")
(org-agenda-prefix-format " [ ] %12:c%?-12t % s")))
Note the % s in the `org-agenda-prefix-format' setting. All other
settings are showing up fine, but the schedule information is missing in
the display.
As an aside, %s is not exactly what I need, as I was looking for a way
to display a single character flag (S or D for scheduled or deadline),
but this is also fine.
Regards,
--
Anupam
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format?
2011-04-28 15:12 Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format? Anupam Sengupta
@ 2011-05-06 13:00 ` Matt Lundin
0 siblings, 0 replies; 2+ messages in thread
From: Matt Lundin @ 2011-05-06 13:00 UTC (permalink / raw)
To: Anupam Sengupta; +Cc: emacs-orgmode
Anupam Sengupta <anupamsg@gmail.com> writes:
> Hello,
>
> In my custom agenda block, I wanted to distinguish between SCHEDULED and
> DEADLINE items using a small character flag. The docstring for
> `org-agenda-prefix-format' mentions %s as the one to use for the
> scheduled/deadline string (as is used in the default agenda) - however,
> this string does not seem to be working for me (orgmode 7.5).
>
> As an example of a custom agenda block:
>
> (tags-todo "+TODO=\"TODO\"+SCHEDULED>=\"<today>\"+SCHEDULED<\"<tomorrow>\"|+TODO=\"TODO\"+DEADLINE>=\"<today>\"+DEADLINE<\"<tomorrow>\"|+TODO=\"TODO\"+TIMESTAMP>=\"<today>\"+TIMESTAMP<\"<tomorrow>\""
> ((org-agenda-overriding-header "\nToday's Action Items\n====================")
> (org-agenda-prefix-format " [ ] %12:c%?-12t % s")))
>
> Note the % s in the `org-agenda-prefix-format' setting. All other
> settings are showing up fine, but the schedule information is missing in
> the display.
AFAIK, scheduling information is not included when constructing tags or
todo views.
> As an aside, %s is not exactly what I need, as I was looking for a way
> to display a single character flag (S or D for scheduled or deadline),
> but this is also fine.
You can control the display of scheduled and deadline information with
org-agenda-scheduled-leaders and org-agenda-deadline-leaders, but I
believe this only applies to the agenda view.
Best,
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-06 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 15:12 Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format? Anupam Sengupta
2011-05-06 13:00 ` Matt Lundin
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).