From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: display outline headings up to certain level in search-view Date: Mon, 24 Dec 2012 14:51:54 +0100 Message-ID: <87obhjsglh.fsf@bzg.ath.cx> References: <87mwxgplwc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tn8Rg-0006xs-RW for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 08:51:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tn8Rf-0005YR-QW for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 08:51:56 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:41515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tn8Rf-0005YM-JL for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 08:51:55 -0500 Received: by mail-wi0-f179.google.com with SMTP id o1so4051291wic.12 for ; Mon, 24 Dec 2012 05:51:54 -0800 (PST) In-Reply-To: <87mwxgplwc.fsf@gmail.com> (=?iso-8859-1?Q?=22Abd=F3?= Roig-Maranges"'s message of "Fri, 14 Dec 2012 18:46:11 +0100") 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: =?iso-8859-1?Q?Abd=F3?= Roig-Maranges Cc: emacs-orgmode@gnu.org Hi Abdó, Abdó Roig-Maranges writes: > Let's say I have an org file structured like this > > * Project 1 > ** Tasks > foo > ** Ideas > > * Project 2 > ** Tasks > bar > > When I search 'foo' I'd like the agenda search-view to display 'Project > 1' instead of the closer, but less informative 'Tasks' > > The attached patch solves this by adding a configuration parameter that > sets the maximum outline level for the headings displayed in the results > of a search-view. This way, I can have a custom search on the above org > file with org-agenda-search-view-max-outline-level set to 1. Thanks. I've applied your patch with a few some cosmetic changes. I hesitated before applying this patch because maybe we want this for other agenda views as well. But after some thinking, I see how this is useful for search views and I'm not sure whether this would be useful for other agenda views. Best, -- Bastien