3 ms·
Thank you so much for this. This immediately replaced my usage of org-velocity. I used this function to convert my (10,000 line) velocity.org file into separate
by matthewsnyder 15y ago
Thank you so much for this. This immediately replaced my usage of org-velocity. I used this function to convert my (10,000 line) velocity.org file into separate files for Deft:
(defun generate-files-from-velocity (buffername)
(save-excursion
(switch-to-buffer buffername)
(org-map-entries (lambda ()
(progn
(org-mark-subtree)
(if (and (= 1 (org-outline-level)) (org-export-get-title-from-subtree))
(let* ((title (downcase (org-export-get-title-from-subtree)))
(filename (replace-regexp-in-string " " "-" (concat title ".org"))))
(append-to-file (region-beginning) (region-end) (concat "~/Documents/Org/Notes/" filename)))))))))
(generate-files-from-velocity "velocity.org")
- basman 15y agoI haven't used either of these, but they seem to fill a useful niche. What do you find are the pros and cons of deft vs. org-velocity?
- matthewsnyder 15y agoThe advantage for me is entirely in terms of separating notes into separate files; something that Deft does and org-velocity isn't really built for. I was planning on implementing something like that for org-velocity, but with the arrival of Deft I no longer have to.