Skip to content

Instantly share code, notes, and snippets.

@iani
Created April 14, 2011 14:13
Show Gist options
  • Save iani/919549 to your computer and use it in GitHub Desktop.
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)
;; 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)
@jayiyer09
Copy link

Thank you for a very useful function. It works great.
-jay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment