From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: merging subtrees (in a syllabus) Date: Wed, 23 Aug 2017 01:25:25 -0500 Message-ID: <87tw0ykdgq.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkP6p-0005LP-JC for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 02:25:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkP6m-0001rZ-Dq for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 02:25:47 -0400 Received: from [195.159.176.226] (port=46175 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkP6m-0001oG-4m for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 02:25:44 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dkP6c-0006qf-QS for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 08:25:34 +0200 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" To: emacs-orgmode@gnu.org Hi Matt, One potentially crazy idea would be to store each lab/discussion entry in a named "#+BEGIN_SRC org" block, and use Babel <> to merge them in a final noweb SRC block. Seems a bit recursive, but I guess you could edit each org block with org-edit-special and escape the nesting. Another possibility would be to leave them as they are now, but to use sparse trees in combination with tags or properties to only display lab or discussion entries. Also, you may find org-tree-to-indirect-buffer useful. I have the impression that not many Org users are aware of it or how powerful--might I even say, liberating--it is. You can essentially edit each subtree of your document as a separate document in its own buffer, while behind the scenes it's all taking place in the source buffer. If you're interested in this, I could provide some more details and some support functions that make it more useful. > If it also comes with a thought about how to generate an org date > objet form an initial seed and a session number, that's be fabulous > too. I just discovered this yesterday, and it seems relevant: https://github.com/abo-abo/tiny Apparently it can be used like this: m\n8|**** TODO Learning from Data Week %(+ x 2) \nSCHEDULED: <%(date "Oct 7" (* x 7))> DEADLINE: <%(date "Oct 14" (* x 7))> Which results in: **** TODO Learning from Data Week 2 SCHEDULED: <2013-10-07 Mon> DEADLINE: <2013-10-14 Mon> **** TODO Learning from Data Week 3 SCHEDULED: <2013-10-14 Mon> DEADLINE: <2013-10-21 Mon> [...] Hope this helps! Adam