emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Minning Org-files


From: John Kitchin
Subject: Re: [O] Minning Org-files
Date: Fri, 09 Oct 2015 13:24:56 -0400
User-agent: mu4e 0.9.13; emacs 25.0.50.1

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]