Created
April 14, 2011 14:13
-
-
Save iani/919549 to your computer and use it in GitHub Desktop.
Create a timeline view for the current subtree of an org-mode file. Fastest way to have overview of any projects or sub-projects dates (see: orgmode.org)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Note: you need to create the ~/tmp directory in your home folder for this to work: | |
(defun org-agenda-make-timeline-for-tree () | |
"make a timeline view in agenda for current tree" | |
(interactive) | |
(org-copy-subtree) | |
(find-file "~/tmp/agenda_tmp.org") | |
(beginning-of-buffer) | |
(let ((beg (point))) (end-of-buffer) (delete-region beg (point))) | |
(org-paste-subtree) | |
(save-buffer) | |
(org-timeline) | |
) | |
(global-set-key [C-f9] 'org-agenda-make-timeline-for-tree) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for a very useful function. It works great.
-jay