From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Minning Org-files Date: Fri, 9 Oct 2015 13:48:17 +0000 Message-ID: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_4C0B4DC8B1BD4BDC8717A317C551E046urrochesteredu_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkYGX-0005wt-7i for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 10:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkYGR-0000T0-EQ for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 10:03:21 -0400 Received: from mail-by2on0123.outbound.protection.outlook.com ([207.46.100.123]:54819 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkYGR-0000Sl-4N for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 10:03:15 -0400 Content-Language: en-US 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" --_000_4C0B4DC8B1BD4BDC8717A317C551E046urrochesteredu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi there, I have a huge org-file with notes I have taken on various topics (my common= place org file). Is there an easy way to grab all the entires with a given = tag or keyword to a new org-file ? Thanks, M --- Marvin Doyley Ph.D. University of Rochester Associate Professor of Electrical and Computer Engineering Associate Professor of Biomedical Engineering 333 Hopeman Engineering Building Rochester NY 14627 --_000_4C0B4DC8B1BD4BDC8717A317C551E046urrochesteredu_ Content-Type: text/html; charset="us-ascii" Content-ID: <69B29602BF355243A7CB9668B86124C2@namprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable Hi there,

I have a huge org-file with notes I have taken on various t= opics (my commonplace org file). Is there an easy way to grab all the entir= es with a given tag or keyword to a new org-file ?

Thanks,
M

---
Marvin Doyley Ph.D.
University of Rochester
Associate Professor of Electrical and Computer Engineering
Associate Professor of Biomedical Engineering
333 Hopeman Engineering Building
Rochester NY 14627







--_000_4C0B4DC8B1BD4BDC8717A317C551E046urrochesteredu_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Re: Minning Org-files Date: Fri, 9 Oct 2015 21:43:59 +0000 Message-ID: References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkfSQ-0000Yx-BZ for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 17:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkfSN-0006dB-9e for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 17:44:06 -0400 Received: from mail-by2on0111.outbound.protection.outlook.com ([207.46.100.111]:13728 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkfSN-0006cS-0h for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 17:44:03 -0400 In-Reply-To: Content-Language: en-US Content-ID: <6B1CEFF0E56A2741BB985A122F22D9CB@namprd07.prod.outlook.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: John Kitchin Cc: "emacs-orgmode@gnu.org" Is there anyway of making the search term a variable ? > On Oct 9, 2015, at 1:24 PM, John Kitchin wrote: >=20 > You can do something like this: >=20 > By TODO keyword to grab the DONE entries. >=20 > #+BEGIN_SRC emacs-lisp > (let ((entries (org-map-entries > (lambda () > (save-restriction > (org-narrow-to-subtree) > (buffer-string))) > "TODO=3D\"DONE\""))) > (switch-to-buffer (get-buffer-create "new")) > (org-mode) > (mapcar 'insert entries)) > #+END_SRC >=20 >=20 >=20 > Doyley, Marvin M. writes: >=20 >> Hi there, >>=20 >> I have a huge org-file with notes I have taken on various topics (my com= monplace org file). Is there an easy way to grab all the entires with a giv= en tag or keyword to a new org-file ? >>=20 >> Thanks, >> M >>=20 >> --- >> Marvin Doyley Ph.D. >> University of Rochester >> Associate Professor of Electrical and Computer Engineering >> Associate Professor of Biomedical Engineering >> 333 Hopeman Engineering Building >> Rochester NY 14627 >=20 > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__kitchingroup.cheme.= cmu.edu&d=3DBQIBAg&c=3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3DT41F= _5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=3DZjP3xZzVOvLNMInBTkxBhV_-2rP9uP3= owADCIadxXxk&s=3Dry0y4fD4NMUUCHUpPSK5djnyUZWt57fxbXHuhqUfSls&e=3D=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Minning Org-files Date: Fri, 09 Oct 2015 13:24:56 -0400 Message-ID: References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkh8q-00012E-Ri for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 19:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zkh8H-0004y0-1d for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 19:32:00 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:36322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkbPd-0003qs-Ro for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 13:24:59 -0400 Received: by qgx61 with SMTP id 61so74344886qgx.3 for ; Fri, 09 Oct 2015 10:24:57 -0700 (PDT) In-reply-to: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> 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: "Doyley, Marvin M." Cc: "emacs-orgmode@gnu.org" You can do something like this: By TODO keyword to grab the DONE entries. #+BEGIN_SRC emacs-lisp (let ((entries (org-map-entries (lambda () (save-restriction (org-narrow-to-subtree) (buffer-string))) "TODO=\"DONE\""))) (switch-to-buffer (get-buffer-create "new")) (org-mode) (mapcar 'insert entries)) #+END_SRC Doyley, Marvin M. writes: > Hi there, > > I have a huge org-file with notes I have taken on various topics (my commonplace org file). Is there an easy way to grab all the entires with a given tag or keyword to a new org-file ? > > Thanks, > M > > --- > Marvin Doyley Ph.D. > University of Rochester > Associate Professor of Electrical and Computer Engineering > Associate Professor of Biomedical Engineering > 333 Hopeman Engineering Building > Rochester NY 14627 -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Minning Org-files Date: Sat, 10 Oct 2015 08:06:44 -0400 Message-ID: References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZksvJ-0007aA-Qa for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 08:06:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZksvG-0003r0-KD for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 08:06:49 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:32904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZksvG-0003qm-GD for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 08:06:46 -0400 Received: by qgew37 with SMTP id w37so30757920qge.0 for ; Sat, 10 Oct 2015 05:06:46 -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: "Doyley, Marvin M." Cc: "emacs-orgmode@gnu.org" sure, if you make an interactive function that takes a search argument. Something like this (defun some-name (search-arg) (interactive "sQuery: ") ; insert code below and change "TODO=\"DONE\"" to search-arg ) Doyley, Marvin M. writes: > Is there anyway of making the search term a variable ? > >> On Oct 9, 2015, at 1:24 PM, John Kitchin wrote: >> >> You can do something like this: >> >> By TODO keyword to grab the DONE entries. >> >> #+BEGIN_SRC emacs-lisp >> (let ((entries (org-map-entries >> (lambda () >> (save-restriction >> (org-narrow-to-subtree) >> (buffer-string))) >> "TODO=\"DONE\""))) >> (switch-to-buffer (get-buffer-create "new")) >> (org-mode) >> (mapcar 'insert entries)) >> #+END_SRC >> >> >> >> Doyley, Marvin M. writes: >> >>> Hi there, >>> >>> I have a huge org-file with notes I have taken on various topics (my commonplace org file). Is there an easy way to grab all the entires with a given tag or keyword to a new org-file ? >>> >>> Thanks, >>> M >>> >>> --- >>> Marvin Doyley Ph.D. >>> University of Rochester >>> Associate Professor of Electrical and Computer Engineering >>> Associate Professor of Biomedical Engineering >>> 333 Hopeman Engineering Building >>> Rochester NY 14627 >> >> -- >> Professor John Kitchin >> Doherty Hall A207F >> Department of Chemical Engineering >> Carnegie Mellon University >> Pittsburgh, PA 15213 >> 412-268-7803 >> @johnkitchin >> https://urldefense.proofpoint.com/v2/url?u=http-3A__kitchingroup.cheme.cmu.edu&d=BQIBAg&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=T41F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=ZjP3xZzVOvLNMInBTkxBhV_-2rP9uP3owADCIadxXxk&s=ry0y4fD4NMUUCHUpPSK5djnyUZWt57fxbXHuhqUfSls&e= -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Re: Minning Org-files Date: Sat, 10 Oct 2015 14:57:13 +0000 Message-ID: References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkvaL-0003T5-86 for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 10:57:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkvaG-0001ws-5H for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 10:57:21 -0400 Received: from mail-bn1on0135.outbound.protection.outlook.com ([157.56.110.135]:12215 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkvaG-0001vp-0V for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 10:57:16 -0400 In-Reply-To: Content-Language: en-US Content-ID: <99788075C5C09A4E91493B93C4FF7A72@namprd07.prod.outlook.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: John Kitchin Cc: "emacs-orgmode@gnu.org" Awesome, I really appreciate this. I must teach myself how to code in lisp :) cheers, M > On Oct 10, 2015, at 8:06 AM, John Kitchin wrote= : >=20 > sure, if you make an interactive function that takes a search argument. > Something like this >=20 > (defun some-name (search-arg) > (interactive "sQuery: ") > ; insert code below and change "TODO=3D\"DONE\"" to search-arg > ) >=20 >=20 > Doyley, Marvin M. writes: >=20 >> Is there anyway of making the search term a variable ? >>=20 >>> On Oct 9, 2015, at 1:24 PM, John Kitchin wrot= e: >>>=20 >>> You can do something like this: >>>=20 >>> By TODO keyword to grab the DONE entries. >>>=20 >>> #+BEGIN_SRC emacs-lisp >>> (let ((entries (org-map-entries >>> (lambda () >>> (save-restriction >>> (org-narrow-to-subtree) >>> (buffer-string))) >>> "TODO=3D\"DONE\""))) >>> (switch-to-buffer (get-buffer-create "new")) >>> (org-mode) >>> (mapcar 'insert entries)) >>> #+END_SRC >>>=20 >>>=20 >>>=20 >>> Doyley, Marvin M. writes: >>>=20 >>>> Hi there, >>>>=20 >>>> I have a huge org-file with notes I have taken on various topics (my c= ommonplace org file). Is there an easy way to grab all the entires with a g= iven tag or keyword to a new org-file ? >>>>=20 >>>> Thanks, >>>> M >>>>=20 >>>> --- >>>> Marvin Doyley Ph.D. >>>> University of Rochester >>>> Associate Professor of Electrical and Computer Engineering >>>> Associate Professor of Biomedical Engineering >>>> 333 Hopeman Engineering Building >>>> Rochester NY 14627 >>>=20 >>> -- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__kitchingroup.chem= e.cmu.edu&d=3DBQIBAg&c=3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3DT4= 1F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=3DZjP3xZzVOvLNMInBTkxBhV_-2rP9u= P3owADCIadxXxk&s=3Dry0y4fD4NMUUCHUpPSK5djnyUZWt57fxbXHuhqUfSls&e=3D >=20 > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__kitchingroup.cheme.= cmu.edu&d=3DBQIBAg&c=3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3DT41F= _5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=3DhnMwDGuA_hdr-MPhQEOOEcDQ7Wd1eLg= QFHotHKPOM2Y&s=3DKAVoqsDi0jWRU6Ilqh5eq16troIjU6lPlk-AQ99ZTv8&e=3D=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Re: Minning Org-files Date: Sat, 10 Oct 2015 15:27:00 +0000 Message-ID: <4D36A209-AD48-4CF6-838F-2540DF876EF1@ur.rochester.edu> References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkw39-0007NK-IL for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 11:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zkw36-0004Im-8r for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 11:27:07 -0400 Received: from mail-bn1bbn0108.outbound.protection.outlook.com ([157.56.111.108]:56935 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkw36-0004Ii-4C for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 11:27:04 -0400 In-Reply-To: Content-Language: en-US Content-ID: 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: John Kitchin Cc: "emacs-orgmode@gnu.org" Hi John, It works like a charm.=20 Thank you so so so much cheers, M > On Oct 10, 2015, at 8:06 AM, John Kitchin wrote= : >=20 > sure, if you make an interactive function that takes a search argument. > Something like this >=20 > (defun some-name (search-arg) > (interactive "sQuery: ") > ; insert code below and change "TODO=3D\"DONE\"" to search-arg > ) >=20 >=20 > Doyley, Marvin M. writes: >=20 >> Is there anyway of making the search term a variable ? >>=20 >>> On Oct 9, 2015, at 1:24 PM, John Kitchin wrot= e: >>>=20 >>> You can do something like this: >>>=20 >>> By TODO keyword to grab the DONE entries. >>>=20 >>> #+BEGIN_SRC emacs-lisp >>> (let ((entries (org-map-entries >>> (lambda () >>> (save-restriction >>> (org-narrow-to-subtree) >>> (buffer-string))) >>> "TODO=3D\"DONE\""))) >>> (switch-to-buffer (get-buffer-create "new")) >>> (org-mode) >>> (mapcar 'insert entries)) >>> #+END_SRC >>>=20 >>>=20 >>>=20 >>> Doyley, Marvin M. writes: >>>=20 >>>> Hi there, >>>>=20 >>>> I have a huge org-file with notes I have taken on various topics (my c= ommonplace org file). Is there an easy way to grab all the entires with a g= iven tag or keyword to a new org-file ? >>>>=20 >>>> Thanks, >>>> M >>>>=20 >>>> --- >>>> Marvin Doyley Ph.D. >>>> University of Rochester >>>> Associate Professor of Electrical and Computer Engineering >>>> Associate Professor of Biomedical Engineering >>>> 333 Hopeman Engineering Building >>>> Rochester NY 14627 >>>=20 >>> -- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__kitchingroup.chem= e.cmu.edu&d=3DBQIBAg&c=3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3DT4= 1F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=3DZjP3xZzVOvLNMInBTkxBhV_-2rP9u= P3owADCIadxXxk&s=3Dry0y4fD4NMUUCHUpPSK5djnyUZWt57fxbXHuhqUfSls&e=3D >=20 > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__kitchingroup.cheme.= cmu.edu&d=3DBQIBAg&c=3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3DT41F= _5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=3DhnMwDGuA_hdr-MPhQEOOEcDQ7Wd1eLg= QFHotHKPOM2Y&s=3DKAVoqsDi0jWRU6Ilqh5eq16troIjU6lPlk-AQ99ZTv8&e=3D=20