From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Announcement: org-one-to-many Date: Thu, 23 Oct 2014 19:58:48 +0200 Message-ID: <87fvee652f.fsf@wmi.amu.edu.pl> References: <87ppdlfotc.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhMfD-0007PR-N8 for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 13:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhMf8-0004Ry-2O for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 13:59:07 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:49677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhMf7-0004Rr-SX for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 13:59:02 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 594A342251 for ; Thu, 23 Oct 2014 19:58:59 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aCHPNJ9mUPpO for ; Thu, 23 Oct 2014 19:58:59 +0200 (CEST) Received: from localhost (99-229.echostar.pl [213.156.99.229]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id F398842248 for ; Thu, 23 Oct 2014 19:58:58 +0200 (CEST) In-reply-to: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org mailing list On 2014-10-23, at 16:39, Daniel Clemente wrote: > Hi, > breaking a big .org file in many small pieces is one of my major concer= ns > with .org and one which gives me lots of problems. Thank you very much = for > having the clear objective of one-to-many. You're welcome! > If your goal is HTML export, you can do a function that iterates over a= ll > headers and exports them (see below). But then links are broken, you ne= ed > to decide filenames, etc. Which is what your project solves. Or I hope so =E2=80=93 at least;-). > org-one-to-many has a shortcoming which is present in so many "org to b= log" > systems: it expects a particular structure (in this case, all headers a= t > the same level). I suggest you iterate over search results of a normal > search: > > For instance, you can get all headers tagged with "tobesplit" like this= : > (org-map-entries (lambda () (line-number-at-pos)) "+tobesplit" 'agenda= ) > > One of the possible searches is "headers at level 2", so this new syste= m > would include the one you have. I thought about it. I'd like to first make my code a bit cleaner and fix one bug I know of. I think this will be fairly easy; I could split headers with some property (a tag might not be a good idea, since tags are inherited). > Greetings Thanks for your input! --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University