From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Filter depending on item level
Date: Mon, 30 Apr 2012 10:27:25 +0200 [thread overview]
Message-ID: <80aa1tbp5e.fsf@somewhere.org> (raw)
In-Reply-To: CACHMzOG2EqySB3jy3+028GqN9XYDMhkzDfTuLC1Xwqn-Uj7JAA@mail.gmail.com
Hi Marcelo,
Marcelo de Moraes Serpa wrote:
> Is there a way to filter the agenda based on the level of the item. For
> example, let's say I have several items tagged as projects, but I would
> like to get a list of projects that are 1st or 2nd-level items in my org
> files, like:
>
> * This would appear :project:
> * This would also :project:
> * This would not appear :project:
>
> Is there an easy way to do this currently?
I'm not yet expert in search-fu, but IIRC (from reading the excellent page of
Matt on advanced search, see Worg) you can construct a quite easy regexp with
the `*' symbol to represent your levels.
You'd have a search regexp in the following spirit:
^*{1,2} .* :project:
You need to escape some of the above symbols, though...
Please post, afterward, the regexp that worked for you.
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2012-04-30 8:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-30 2:27 Filter depending on item level Marcelo de Moraes Serpa
2012-04-30 8:22 ` Toby Cubitt
2012-04-30 8:27 ` Sebastien Vauban [this message]
2012-05-01 11:35 ` Bastien
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=80aa1tbp5e.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).