From: Matthew Lundin <mdl@imapmail.org>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: Matt Lundin <mdl@imapmail.org>,
emacs-orgmode@gnu.org, evita moreno <evitamoreno80@live.com>
Subject: Re: Org-mode and searching for multiple occurances
Date: Thu, 11 Feb 2010 07:08:53 -0500 [thread overview]
Message-ID: <87fx586kkq.fsf@fastmail.fm> (raw)
In-Reply-To: <83sk98f5ik.fsf@yahoo.it> (Giovanni Ridolfi's message of "Thu, 11 Feb 2010 11:09:23 +0100")
Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
> Stephan Schmitt <drmabuse@cs.tu-berlin.de> writes:
>
> Hi, Stephan,
>> Also sprach Matt Lundin:
>>> evita moreno <evitamoreno80@live.com> writes:
>>>
>>>> * jones2000
>>>> blah blah blah keyword1 keyword2
>>>> *jones2007
>>>> blah blah keyword2
>>>>
>>>> and so on. I was wondering whether there is a way where one can search
>>>> for a keyword in the database (more than 350 papers up to now) and can
>>>> get in an automatic fashion in which of the jones' entries these
>>>> keywords occur
>>> You can use org-search-view (C-c a s).
>> Just a remark:
>> If the file is not in org-agenda-files it is "C-c a < s"
>>
> well I don't think that using *Agenda* is what Evita is looking for,
> or at least I was not able to obtain a satisfactory view
> of the authors with keyword2 occurrence in my test.org file.
>
> I think that your first solution:
>
> M-x org-occur
>
> is the best *org-option*
I'm not sure I follow you here. The function org-search-view (C-c a s)
searches all org-agenda files for a regexp and/or word (or as Stephan
pointed out searches the current file with a restriction) and returns a
list of entry headings that contains that keyword. AFAICT, this is the
behavior the OP was looking for:
--8<---------------cut here---------------start------------->8---
Search words: keyword2
Press `[', `]' to add/sub word, `{', `}' to add/sub regexp, `C-u r' to edit
test: jones2000
test: jones2007
--8<---------------cut here---------------end--------------->8---
One more consideration: If the OP wants genuine tag functionality,
perhaps it would be better to add the keywords as tags. E.g.,
--8<---------------cut here---------------start------------->8---
** jones2000 :keyword1:keyword2:
blah blah
** jones2007 :keyword2:
blah blah
--8<---------------cut here---------------end--------------->8---
Best,
Matt
prev parent reply other threads:[~2010-02-11 12:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 15:34 Org-mode and searching for multiple occurances evita moreno
2010-02-10 15:46 ` Stephan Schmitt
2010-02-10 21:20 ` Matt Lundin
2010-02-11 9:45 ` Stephan Schmitt
2010-02-11 10:09 ` Giovanni Ridolfi
2010-02-11 12:08 ` Matthew Lundin [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=87fx586kkq.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=evitamoreno80@live.com \
--cc=giovanni.ridolfi@yahoo.it \
/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).