From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Question about org-search-view and org-occur-in-agenda-files
Date: Sat, 23 Jul 2011 19:36:16 +0200 [thread overview]
Message-ID: <CAMXnza3fjeMSMGKzv1EUX+iO99A0GfO4ppz4N_h6z7gAzo=OiQ@mail.gmail.com> (raw)
Hi Orgers,
I know that I can use `org-search-view' or `org-occur-in-agenda-files'
from the agenda to search for some string on all my agenda files. And I
can customise `org-agenda-text-search-extra-files' to include extra text
files.
These search functions are quite powerful in general, so I was wondering
if these functions can be used to do a search restricted to say a list
of files or to org files within a directory. If I could wrap these in my
own functions, even that would be amazingly helpful.
To illustrate a use case, I recently switched research projects[1]. I
keep all my files related to the OLDPROJ under ~/org/OLDPROJ/ and all my
files related to the NEWPROJ under ~/org/NEWPROJ/[2]. Now when I perform
a text search I want to include only the NEWPROJ along with my agenda
files (located in ~/org/). Now I would like to have an interface (either
through the agenda menu or through some interactively called function)
to perform a search _only_ on the OLDPROJ files when necessary. Is that
possible?
Any hints as to how I can achieve this would be amazingly helpful.
Thanks. :)
Footnotes:
[1] I am using the word project rather loosely to describe a
super-project with several sub-projects which are rather significant
by themselves.
[2] These project directories have their own structure based on
sub-projects and other needs.
--
Suvayu
Open source is the future. It sets us free.
next reply other threads:[~2011-07-23 17:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-23 17:36 suvayu ali [this message]
2011-07-25 18:29 ` Question about org-search-view and org-occur-in-agenda-files Darlan Cavalcante Moreira
2011-07-25 20:07 ` suvayu ali
2011-07-26 1:20 ` Bernt Hansen
2011-07-26 2:04 ` suvayu ali
2011-07-26 3:09 ` Matt Lundin
2011-07-26 9:50 ` suvayu ali
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='CAMXnza3fjeMSMGKzv1EUX+iO99A0GfO4ppz4N_h6z7gAzo=OiQ@mail.gmail.com' \
--to=fatkasuvayu+linux@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).