From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: org-agenda-custom-command for property AND TODO state (for a cooking guide :) ) Date: Mon, 14 Apr 2014 22:03:16 +0200 Message-ID: <874n1vel17.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZn7I-0004Jp-BU for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 16:04:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZn79-0001CI-9m for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 16:04:32 -0400 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:43372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZn79-0001Bx-30 for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 16:04:23 -0400 Received: by mail-ee0-f41.google.com with SMTP id t10so7077568eei.28 for ; Mon, 14 Apr 2014 13:04:22 -0700 (PDT) In-Reply-To: (Xebar Saram's message of "Fri, 28 Mar 2014 16:45:37 +0300") 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: Xebar Saram Cc: org mode On 2014-03-28 14:45 Xebar Saram wrote: > Hi all i was wondering if anyone knew how to set > a org-agenda-custom-command for property AND TODO state? that is create a > custom view that is similar to this sparse tree command: > > C-c / M type="main"/COOK > > where it would match on type=main and have a COOK todo keyword > > best > > Z > > P.S in case anyone wonders wth im using it for :) im trying to auto > generate a list of things to cook (todo word COOK) by type of meal so id > generate a list for main dishes, breakfast etc :) Does this work for you? C-c / m +TODO="TODO"+TYPE="main" HTH, -- Alexander Baier