From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tilmann Singer Subject: Agenda that shows hierarchy above matches? Date: Thu, 23 Jul 2009 10:29:42 +0200 Message-ID: <87my6vdcp5.wl%tils@tils.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTtlc-0003UI-RG for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 04:35:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTtlY-0003Sw-Sm for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 04:35:08 -0400 Received: from [199.232.76.173] (port=47707 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTtlY-0003Sm-Kt for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 04:35:04 -0400 Received: from main.gmane.org ([80.91.229.2]:56917 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MTtlY-0005Wm-2a for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 04:35:04 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MTtlW-0004ui-E1 for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 08:35:02 +0000 Received: from 83-65-190-51.krugerstrasse.xdsl-line.inode.at ([83.65.190.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jul 2009 08:35:02 +0000 Received: from tils by 83-65-190-51.krugerstrasse.xdsl-line.inode.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jul 2009 08:35:02 +0000 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: emacs-orgmode@gnu.org Hi, I wonder if there is way to get an agenda showing all TODO items with the hierarchical context up to the top level. Given an projects.org like this: * Project A ** TODO do foo ** TODO do bar ** DONE do baz * Project B ** DONE do foo * TODO Another small thing An agenda view, e.g. tags match for /!TODO looks like this: projects: TODO do foo projects: TODO do bar projects: TODO Another small thing In order to find out the context of the first two lines, I currently have to go to each line and hit tab to see the corresponding location in the org file or switch on follow mode. This is not ideal for getting an overview over all TODO items when there are lots of such matches because I would then need to follow each item and remember the context. Also sometimes I would like to export an agenda to a text file including all their parent headlines up to the top level, but no other items of the org file. So is there a way to get an agenda that looks similar to this: projects: * Project A ** TODO do foo ** TODO do bar * TODO Another small thing Actually org-sparse-tree is very close to what I want, but first it only works for a single org file (which I could live with), but also as far as I see there is no way to hide the collapsed top level headlines which have no match - "* Project B" in the above example. Til