From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Zang Subject: Re: Custom Agenda View for Projects Date: Tue, 15 Mar 2011 07:24:50 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=41570 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzNga-0007Lv-OO for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 02:24:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzNgZ-0001bP-FS for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 02:24:52 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:38297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzNgZ-0001b1-A6 for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 02:24:51 -0400 Received: by vws4 with SMTP id 4so321265vws.0 for ; Mon, 14 Mar 2011 23:24:50 -0700 (PDT) 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 2011/3/15 Manish : > On Tue, Mar 15, 2011 at 12:54 AM, Christian Zang wrote: >> Dear all, >> >> I might be overlooking something very obvious, but I cannot find the >> solution: I have various org files, in which "projects" (anything >> requiring more than one action step...) are first level headings >> marked using the TODO kwd PROJ. If I tell my agenda to list all items >> with kwd PROJ (either via C-a T PROJ or as a custom agenda view via >> "tags-todo "LEVEL=1""), only the ones without siblings are returned. >> I've looked into "org-tags-match-list-sublevels" but this is not quite >> the right thing to calibrate... > > Could you show a sample outline please? > > -- > Manish > Sure, here is a sample outline: * PROJ Write Proposal ** TODO write introduction * PROJ Clean Lab * PROJ Get Birthday Present ** TODO get dad's hat size >From that list, only "Clean Lab" will show up in the list of projects. Below are my settings regarding custom agenda views: (setq org-agenda-custom-commands '(("W" "Weekly Review" ((agenda "" ((org-agenda-ndays 7))) (stuck "") ;; review stuck projects (todo "PROJ") ;; review all projects (todo "SDMB") ;; review someday/maybe items (todo "WAIT"))) ;; review waiting items ("P" "Projects" tags-todo "LEVEL=1" ((org-agenda-overriding-header "List of Projects"))) ("O" "Today-View" ; like OF "due & flagged" ((agenda "Due or scheduled within next week" ((org-agenda-ndays 7) (org-agenda-start-on-weekday nil) (org-agenda-overriding-header "\nDue or scheduled within next week\n------------------\n") )) ; due within next week (tags-todo "+PRIORITY=\"A\"" ((org-agenda-overriding-header "\nHigh priority\n------------------\n"))) ; pseudo-flagged items )) )) Neither "W" nor "P" shows all projects, but rather only the ones without siblings. This is what I use as TODO kwds: (setq org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)") (sequence "STRT(s!)" "|") (sequence "|" "CNCL(c@!)") (sequence "FXME(f)" "|" "FIXD(x!)") (sequence "PROJ(p!)" "PRSC(u)" "PROH(o)" "|" "PRDN(r!)" "PRCL(o@/!)") (sequence "LIST(l)" "|") (sequence "SDMB(m)" "|"))) And these are the agenda-relevant settings in custom.el: '(org-agenda-compact-blocks t) '(org-agenda-dim-blocked-tasks (quote invisible)) '(org-stuck-projects (quote ("+LEVEL=1/+PROJ-PRDN-PROH-SDMB" ("TODO" "NEXT" "FXME" "STRT") nil ""))) Thanks! Christian