[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] display outline headings up to certain level in search-view
From: |
Bastien |
Subject: |
Re: [O] display outline headings up to certain level in search-view |
Date: |
Mon, 24 Dec 2012 14:51:54 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Hi Abdó,
Abdó Roig-Maranges <address@hidden> 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