From mboxrd@z Thu Jan 1 00:00:00 1970 From: mcg Subject: org-mode - export as folder structure possible? Date: Thu, 17 Nov 2016 01:00:54 +0100 Message-ID: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------F4579BA63537E792EC64B420" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7A8S-0001tJ-Gt for emacs-orgmode@gnu.org; Wed, 16 Nov 2016 19:01:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7A8P-0006Sp-Ff for emacs-orgmode@gnu.org; Wed, 16 Nov 2016 19:01:00 -0500 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7A8P-0006SE-8w for emacs-orgmode@gnu.org; Wed, 16 Nov 2016 19:00:57 -0500 Received: by mail-wm0-x22a.google.com with SMTP id f82so109803413wmf.1 for ; Wed, 16 Nov 2016 16:00:57 -0800 (PST) Received: from [192.168.1.60] (13.red-81-39-88.dynamicip.rima-tde.net. [81.39.88.13]) by smtp.googlemail.com with ESMTPSA id i2sm217748wjx.44.2016.11.16.16.00.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2016 16:00:55 -0800 (PST) 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 This is a multi-part message in MIME format. --------------F4579BA63537E792EC64B420 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 With that functionality I could really thoroughly create a decent folder structure. With many people working on the windows server it becomes quite chaotic. Thanks in advance for any answer. --------------F4579BA63537E792EC64B420 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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


With that functionality I could really thoroughly create a decent folder structure. With many people working on the windows server it becomes quite chaotic. 
Thanks in advance for any answer.


--------------F4579BA63537E792EC64B420-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Hudson Subject: Re: org-mode - export as folder structure possible? Date: Thu, 17 Nov 2016 08:16:35 +0000 Message-ID: References: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7HsQ-0004Vm-F9 for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 03:16:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7HsP-00013q-Fl for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 03:16:58 -0500 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:35910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7HsP-00012f-7d for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 03:16:57 -0500 Received: by mail-vk0-x230.google.com with SMTP id p9so135685844vkd.3 for ; Thu, 17 Nov 2016 00:16:57 -0800 (PST) In-Reply-To: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> 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: mcg Cc: emacs orgmode-mailinglist Have a look at the docstring for the function `org-element-map'. On 17 November 2016 at 00:00, mcg wrote: > 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 > > > With that functionality I could really thoroughly create a decent folder > structure. With many people working on the windows server it becomes quite > chaotic. > Thanks in advance for any answer. > > -- Phil Hudson http://hudson-it.ddns.net Pretty Good Privacy (PGP) ID: 0x887DCA63 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: org-mode - export as folder structure possible? Date: Sat, 26 Nov 2016 19:31:34 +0100 Message-ID: <2016-11-26T19-31-02@devnull.Karl-Voit.at> References: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAhok-0001oH-3m for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 13:35:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAhog-0003Oi-4s for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 13:35:18 -0500 Received: from [195.159.176.226] (port=49735 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAhof-0003OQ-Uf for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 13:35:14 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cAhoZ-0003gJ-O8 for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 19:35:07 +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 * mcg wrote: > > 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? Take a look at: https://www.reddit.com/r/orgmode/comments/5emuzc/mount_orgmode_files_as_fuse_file_systems/ Not exactly your use-case but you might get ideas. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github