From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: org-mode - export as folder structure possible? Date: Thu, 17 Nov 2016 12:03:48 +0100 Message-ID: <84d1hu5pwr.fsf@gmail.com> References: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7KUB-0000qK-PH for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 06:04:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7KU6-0000N1-7t for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 06:04:07 -0500 Received: from [195.159.176.226] (port=50326 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7KU6-0000Ml-1E for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 06:04:02 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c7KU0-0004ff-FH for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 12:03:56 +0100 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 Hello, > Hello, > > I need to create a rather complex folder structure. > It is OK to create that in dired but I think even nicer and faster it > would be to create an org-mode outline which then exports this folder > structure to the org document's directory. > > This could even be extended to create blank files with file extension > within the directory - maybe communicated to the exporter with list > items. > Can the org-mode exporter be used or easily programmed for this kind > of application? > > * Folder > - Registry.xls > - document.doc > > ** Subfolder > > *** Subsubfolder > - some_document.txt > > ** Subfolder 2 > > * Another folder > > ** another one > - document.file_extension > - ListB.xlsx [...] > > Thanks in advance for any answer. I fiddled together something which might be a start for you. https://gist.github.com/marcowahl/c12ed4b2df9748ad7185338394b92445 Files are identified by the 'file' tag in that example. If you want to stay with the plain lists you should follow the direction pointed to by Phil AFAICT. Ciao, Marco