Re: [O] Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format?

2011-05-06 Thread Matt Lundin
Anupam Sengupta anupa...@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



[O] Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format?

2011-04-28 Thread Anupam Sengupta
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