From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format? Date: Fri, 06 May 2011 09:00:49 -0400 Message-ID: <87y62knfum.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIKeJ-0006D4-SI for emacs-orgmode@gnu.org; Fri, 06 May 2011 09:00:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIKeI-0004vB-PI for emacs-orgmode@gnu.org; Fri, 06 May 2011 09:00:51 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:46663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIKeI-0004v5-NB for emacs-orgmode@gnu.org; Fri, 06 May 2011 09:00:50 -0400 In-Reply-To: (Anupam Sengupta's message of "Thu, 28 Apr 2011 20:42:54 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Anupam Sengupta Cc: emacs-orgmode@gnu.org Anupam Sengupta 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>=\"\"+SCHEDULED<\"\"|+TODO=\"TODO\"+DEADLINE>=\"\"+DEADLINE<\"\"|+TODO=\"TODO\"+TIMESTAMP>=\"\"+TIMESTAMP<\"\"" > ((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