From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Matt Lundin <mdl@imapmail.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Question about org-search-view and org-occur-in-agenda-files
Date: Tue, 26 Jul 2011 11:50:23 +0200 [thread overview]
Message-ID: <CAMXnza0LrC64VuG_Py1SHL5175=y1yY8F7obGK0uS9bab96QtQ@mail.gmail.com> (raw)
In-Reply-To: <871uxdg2kx.fsf@fastmail.fm>
Hi Matt,
On Tue, Jul 26, 2011 at 5:09 AM, Matt Lundin <mdl@imapmail.org> wrote:
>> Custom agenda commands do not support prompting for search phrases.
>
> The following custom agenda command offers a prompt:
>
> --8<---------------cut here---------------start------------->8---
> (org-add-agenda-custom-command
> '("x" "Search special files" search ""
> ((org-agenda-files '("~/special/")))))
> --8<---------------cut here---------------end--------------->8---
>
Yes, that was one of my misconceptions from my reading of the
org-agenda-custom-commands docs. The docs say:
[...]
match What to search for:
- a single keyword for TODO keyword searches
- a tags match expression for tags searches
- a word search expression for text searches.
- a regular expression for occur searches
For all other commands, this should be the empty string.
And the following example is given,
(search "match" settings files)
I erroneously assumed the string cannot be an empty string until I read
the article on Worg. I also realised I can use let to set any variable
to whatever I need and wrap around any of the search functions. I can
then have prompts for any kind of search with these. Thanks everyone for
pointing me in the right direction. :)
> Best,
> Matt
Thanks,
--
Suvayu
Open source is the future. It sets us free.
prev parent reply other threads:[~2011-07-26 9:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-23 17:36 Question about org-search-view and org-occur-in-agenda-files suvayu ali
2011-07-25 18:29 ` 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 [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMXnza0LrC64VuG_Py1SHL5175=y1yY8F7obGK0uS9bab96QtQ@mail.gmail.com' \
--to=fatkasuvayu+linux@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mdl@imapmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.