From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Searching linked files Date: Wed, 20 Jun 2012 09:16:49 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0421824d3af06504c2e7366a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShKmJ-0001ed-Kp for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 09:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShKmD-0000F2-ED for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 09:16:59 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:39117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShKmD-0000EC-4C for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 09:16:53 -0400 Received: by eekb47 with SMTP id b47so2690722eek.0 for ; Wed, 20 Jun 2012 06:16:50 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --f46d0421824d3af06504c2e7366a Content-Type: text/plain; charset=ISO-8859-1 Hi there, Does anybody now how to search the content of a linked file ? I have a master file that is included in org-agenda file list. This file contains links to other research project related org files. Unfortunately, is seems that only way to search the content of the link file is to include it in the agenda file list, ideally I prefer not to do this. To illustrate the problem, lets say I have a file myfile.org, which is included in the list of org agenda files. myfile.org contains the following * Apples * Pears * [[file:~/test.org][Farmers]] Similarly, test.org contains * Jack - Cheapest supplier of Apples - Deliver * Joe - Pear supplies and other vegetables * Bill - Potential supplier Lets say I want to do a keyword search for vegetables, I would hit C-a s. The problem is that unless I include test.org in the agenda file list, it doesn't work. I appreciate any help or suggestion. Cheers M --f46d0421824d3af06504c2e7366a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi there,

Does anybody now how to search the content of = a linked file ? I have a master file that is included in org-agenda file li= st. This file contains links to other research project related org files. U= nfortunately, is seems that only way to search the content of the link file= is to include it in the agenda file list, ideally I prefer not to do this.= =A0

To illustrate the problem, lets say I have a file myfile.org, which is included in the list of o= rg agenda files.

myf= ile.org contains the following

* Apples
* Pears
* [[file:~/test.org][Farmers]]

Simil= arly, test.org contains=A0

* Jack
- Cheapest supplier of Apples
- Deliver
* Joe
- =A0Pear supplies and other vegetables=A0
* Bill
- =A0Potential supplier


Lets say I want to do a keyword search for =A0vegetables, I would hit = C-a s. The problem is that unless I include tes= t.org in the agenda file list, it doesn't work.


I appreciate any help or suggestion.

Cheers
M

--f46d0421824d3af06504c2e7366a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Searching linked files Date: Wed, 20 Jun 2012 13:24:37 -0300 Message-ID: <4fe1f948.a274ec0a.047f.2d1e@mx.google.com> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShNi2-0000MT-7d for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 12:24:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShNi0-0007UV-8r for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 12:24:45 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:41922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShNi0-0007UM-2F for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 12:24:44 -0400 Received: by yhr47 with SMTP id 47so6842412yhr.0 for ; Wed, 20 Jun 2012 09:24:41 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marvin Doyley Cc: emacs-orgmode@gnu.org See the variable org-agenda-text-search-extra-files. It seems to be exactly what you want. -- Darlan Cavalcante At Wed, 20 Jun 2012 09:16:49 -0400, Marvin Doyley wrote: > > Hi there, > > Does anybody now how to search the content of a linked file ? I have a > master file that is included in org-agenda file list. This file contains > links to other research project related org files. Unfortunately, is seems > that only way to search the content of the link file is to include it in > the agenda file list, ideally I prefer not to do this. > > To illustrate the problem, lets say I have a file myfile.org, which is > included in the list of org agenda files. > > myfile.org contains the following > > * Apples > * Pears > * [[file:~/test.org][Farmers]] > > Similarly, test.org contains > > * Jack > - Cheapest supplier of Apples > - Deliver > * Joe > - Pear supplies and other vegetables > * Bill > - Potential supplier > > > Lets say I want to do a keyword search for vegetables, I would hit C-a s. > The problem is that unless I include test.org in the agenda file list, it > doesn't work. > > > I appreciate any help or suggestion. > > Cheers > M From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Re: Searching linked files Date: Wed, 20 Jun 2012 13:45:09 -0400 Message-ID: References: <4fe1f948.a274ec0a.047f.2d1e@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec552428adfb39c04c2eaf5e8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOxv-0003Mf-2E for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 13:45:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShOxs-0004Mk-PY for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 13:45:14 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:45245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOxs-0004Mc-B4 for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 13:45:12 -0400 Received: by lbjn8 with SMTP id n8so1116339lbj.0 for ; Wed, 20 Jun 2012 10:45:10 -0700 (PDT) In-Reply-To: <4fe1f948.a274ec0a.047f.2d1e@mx.google.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira Cc: emacs-orgmode@gnu.org --bcaec552428adfb39c04c2eaf5e8 Content-Type: text/plain; charset=ISO-8859-1 Hi Darlan, This is almost what I am looking for. I would be nice if I could get it to drill down into subdirectories. All my work is located in a directory called research that contains a several directory related to different projects. The problem with this variable is that works only for files in a fixed directory. cheers M On Wed, Jun 20, 2012 at 12:24 PM, Darlan Cavalcante Moreira < darcamo@gmail.com> wrote: > > See the variable org-agenda-text-search-extra-files. It seems to be exactly > what you want. > > -- > Darlan Cavalcante > > > At Wed, 20 Jun 2012 09:16:49 -0400, > Marvin Doyley wrote: > > > > Hi there, > > > > Does anybody now how to search the content of a linked file ? I have a > > master file that is included in org-agenda file list. This file contains > > links to other research project related org files. Unfortunately, is > seems > > that only way to search the content of the link file is to include it in > > the agenda file list, ideally I prefer not to do this. > > > > To illustrate the problem, lets say I have a file myfile.org, which is > > included in the list of org agenda files. > > > > myfile.org contains the following > > > > * Apples > > * Pears > > * [[file:~/test.org][Farmers]] > > > > Similarly, test.org contains > > > > * Jack > > - Cheapest supplier of Apples > > - Deliver > > * Joe > > - Pear supplies and other vegetables > > * Bill > > - Potential supplier > > > > > > Lets say I want to do a keyword search for vegetables, I would hit C-a > s. > > The problem is that unless I include test.org in the agenda file list, > it > > doesn't work. > > > > > > I appreciate any help or suggestion. > > > > Cheers > > M > --bcaec552428adfb39c04c2eaf5e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Darlan,

This is almost what I am looking for. I= would be nice if I could get it to drill down into subdirectories.
All= my work is located in a directory called research that contains a several = directory related to different projects.
The problem with this variable is that works only for files in a fixed= directory.
cheers
M



<= div class=3D"gmail_quote">On Wed, Jun 20, 2012 at 12:24 PM, Darlan Cavalcan= te Moreira <darcamo@gmail.com> wrote:

See the variable org-agenda-text-search-extra-files. It seems to be exactly=
what you want.

--
Darlan Cavalcante


At Wed, 20 Jun 2012 09:16:49 -0400,
Marvin Doyley <marvinpas@gmail.com> wrote:
>
> Hi there,
>
> Does anybody now how to search the content of a linked file ? I have a=
> master file that is included in org-agenda file list. This file contai= ns
> links to other research project related org files. Unfortunately, is s= eems
> that only way to search the content of the link file is to include it = in
> the agenda file list, ideally I prefer not to do this.
>
> To illustrate the problem, lets say I have a file myfile.org, which is
> included in the list of org agenda files.
>
> myfile.org contain= s the following
>
> * Apples
> * Pears
> * [[file:~/test.org]= [Farmers]]
>
> Similarly, test.org = contains
>
> * Jack
> - Cheapest supplier of Apples
> - Deliver
> * Joe
> - =A0Pear supplies and other vegetables
> * Bill
> - =A0Potential supplier
>
>
> Lets say I want to do a keyword search for =A0vegetables, I would hit = C-a s.
> The problem is that unless I include test.org in the agenda file list, it
> doesn't work.
>
>
> I appreciate any help or suggestion.
>
> Cheers
> M

--bcaec552428adfb39c04c2eaf5e8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Searching linked files Date: Wed, 20 Jun 2012 20:51:50 +0200 Message-ID: References: <4fe1f948.a274ec0a.047f.2d1e@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShQ0l-0008OH-LH for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 14:52:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShQ0j-0002wC-PK for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 14:52:15 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:58212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShQ0j-0002vn-Hy for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 14:52:13 -0400 Received: by obhx4 with SMTP id x4so905987obh.0 for ; Wed, 20 Jun 2012 11:52:10 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marvin Doyley Cc: emacs-orgmode@gnu.org Hi Marvin, On Wed, Jun 20, 2012 at 7:45 PM, Marvin Doyley wrote: > This is almost what I am looking for. I would be nice if I could get it to > drill down into subdirectories. Maybe this will help. This defines a custom function: I use the above function in these agenda commands: HTH -- Suvayu Open source is the future. It sets us free. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Re: Searching linked files Date: Wed, 20 Jun 2012 16:58:05 -0400 Message-ID: References: <4fe1f948.a274ec0a.047f.2d1e@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04088c7fce754004c2eda77f Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRyc-0007BX-1I for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 16:58:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShRyZ-0006Fm-TH for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 16:58:09 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:36981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRyZ-0006FD-K0 for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 16:58:07 -0400 Received: by bkcjm19 with SMTP id jm19so7894940bkc.0 for ; Wed, 20 Jun 2012 13:58:05 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: emacs-orgmode@gnu.org --f46d04088c7fce754004c2eda77f Content-Type: text/plain; charset=ISO-8859-1 Hi Suvayu, This is did the trick. More specifically combining find-org-file-recursively with org-agenda-text-search-extra-files allowed me drill down in multiple subdirectory. Thank you. Cheers M On Wed, Jun 20, 2012 at 2:51 PM, suvayu ali wrote: > Hi Marvin, > > On Wed, Jun 20, 2012 at 7:45 PM, Marvin Doyley > wrote: > > This is almost what I am looking for. I would be nice if I could get it > to > > drill down into subdirectories. > > Maybe this will help. > > This defines a custom function: > > > I use the above function in these agenda commands: > > > HTH > > -- > Suvayu > > Open source is the future. It sets us free. > --f46d04088c7fce754004c2eda77f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Suvayu,

This is did the trick. More specificall= y combining=A0find-org-file-recursively with=A0org-agenda-text-search-extra= -files allowed me drill down in multiple subdirectory.=A0
Thank you.
Cheers
M
On Wed, Jun 20, 2012 = at 2:51 PM, suvayu ali <fatkasuvayu+linux@gmail.com> wrote:
Hi Marvin,

On Wed, Jun 20, 2012 at 7:45 PM, Marvin Doyley <marvinpas@gmail.com> wrote:
> This is almost what I am looking for. I would be nice if I could get i= t to
> drill down into subdirectories.

Maybe this will help.

This defines a custom function:
<https://github.com/suvayu/.emacs.d/blob/master/lisp= /nifty.el#L98>

I use the above function in these agenda commands:
<https://github.com/suvayu/.emacs.d/blob/maste= r/org-mode-config.el#L379>

HTH

--
Suvayu

Open source is the future. It sets us free.

--f46d04088c7fce754004c2eda77f--