From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Varnit Suri" Subject: RE: How to view tasks with certain Property tag in Agenda view Date: Mon, 27 Apr 2009 17:33:03 -0700 Message-ID: <57AC2FA1761300418C7AB8F3EA493C9702E31550@HQ-EXCH-5.corp.brocade.com> References: <57AC2FA1761300418C7AB8F3EA493C9702D2400D@HQ-EXCH-5.corp.brocade.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LybG7-0001wQ-4H for emacs-orgmode@gnu.org; Mon, 27 Apr 2009 20:33:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LybG1-0001m2-El for emacs-orgmode@gnu.org; Mon, 27 Apr 2009 20:33:13 -0400 Received: from [199.232.76.173] (port=46259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LybG1-0001lt-96 for emacs-orgmode@gnu.org; Mon, 27 Apr 2009 20:33:09 -0400 Received: from brm-mailgate-2.brocade.com ([144.49.197.3]:27704) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LybG0-00035p-VU for emacs-orgmode@gnu.org; Mon, 27 Apr 2009 20:33:09 -0400 Content-class: urn:content-classes:message In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manish Cc: emacs-orgmode@gnu.org Ok, I went through Matt Lundin's agenda file. While he doesn't do what I was trying to, it did give me a hint about how to implement a simple grep on every Agenda entry, and then include only the lines that match a certain criteria, as part of the main Agenda view. (The current problem with the examples in the two links below is that they display the entire Agenda, and then the matching tags separately). So here's my code: (setq org-agenda-custom-commands '(("h" "Agenda and Home-related tasks" ((agenda "" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":HOME:")))))))) The only problem I 'm left to solve is, that this skips entries with the tag HOME, rather than including them. I 'm only trying a way to do the inverse match (ie skip entries that don't match HOME), but I havent been able to nail the syntax. Any ideas? Thanks, Varnit =20 -----Original Message----- From: Manish [mailto:mailtomanish.sharma@gmail.com]=20 Sent: Tuesday, April 21, 2009 12:12 AM To: Varnit Suri Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] How to view tasks with certain Property tag in Agenda view On Tue, Apr 21, 2009 at 6:11 AM, Varnit Suri wrote: > Thanks. I agree this is prolly a better approach. > > I did get things to work (see code in post-script) a bit using > your suggestion and: > http://orgmode.org/manual/Block-agenda.html#Block-agenda > http://orgmode.org/manual/Storing-searches.html#Storing-searches > > But maybe I wasn't clear enough in describing what I 'm trying to > do. > > I 'd like to parse the weekly Agenda (C-c a a) to show only those > items that meet the specified criteria (eg, certain tags, > todo-tags, or properties). The advantage is that that shows the > relevant items, will complete details of dates, etc. Its sort of > running a grep on the weekly Agenda output. > > Any ideas are appreciated. Have you seen http://orgmode.org/worg/org-customization-survey.php ? Check out Matthew Lundin's agenda customizations in particular. It the awesomest use of agenda customization that I have ever seen. --=20 Manish