From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [agenda] skip non-habit SCHEDULED Date: Thu, 19 May 2011 16:47:21 -0400 Message-ID: <87wrhm8lk6.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNA80-0007zK-CQ for emacs-orgmode@gnu.org; Thu, 19 May 2011 16:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNA7z-0000Gb-6t for emacs-orgmode@gnu.org; Thu, 19 May 2011 16:47:28 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:39139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNA7z-0000GW-4e for emacs-orgmode@gnu.org; Thu, 19 May 2011 16:47:27 -0400 In-Reply-To: (Michael Brand's message of "Thu, 19 May 2011 21:59:50 +0200") 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: Michael Brand Cc: Org Mode Michael Brand writes: > How is it possible to skip SCHEDULED items that don't have the > property STYLE=habit in the day-agenda of a custom agenda view? > > What I checked so far: > - ((org-agenda-entry-types '(:scheduled))): > does not distinguish between habits and non-habits > - "match" from (key desc type match settings files): > not available for "type" agenda AFAIK > - org-agenda-skip-function: not available for type agenda AFAIK Good news: the skip function does apply to agenda views. It provides a means to do simple filtering in the agenda, which does not use the match syntax of org-tags-view. > - day-agenda block for :scheduled _habits_ only > (skip of non-habits not solved yet) Here's a sample implementation (in a single custom agenda command): --8<---------------cut here---------------start------------->8--- (org-add-agenda-custom-command '("x" "Agenda (habits only)" agenda "" ((org-agenda-entry-types '(:scheduled)) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":STYLE:.*habit"))))) --8<---------------cut here---------------end--------------->8--- Best, Matt