From: Bastien <bzg@altern.org>
To: "Abdó Roig-Maranges" <abdo.roig@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: display outline headings up to certain level in search-view
Date: Mon, 24 Dec 2012 14:51:54 +0100 [thread overview]
Message-ID: <87obhjsglh.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87mwxgplwc.fsf@gmail.com> ("Abdó Roig-Maranges"'s message of "Fri, 14 Dec 2012 18:46:11 +0100")
Hi Abdó,
Abdó Roig-Maranges <abdo.roig@gmail.com> 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
prev parent reply other threads:[~2012-12-24 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 17:46 display outline headings up to certain level in search-view Abdó Roig-Maranges
2012-12-24 13:51 ` Bastien [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obhjsglh.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=abdo.roig@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).