emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode - export as folder structure possible?
@ 2016-11-17  0:00 mcg
  2016-11-17  8:16 ` Philip Hudson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mcg @ 2016-11-17  0:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

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.



[-- Attachment #2: Type: text/html, Size: 1417 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode - export as folder structure possible?
  2016-11-17  0:00 org-mode - export as folder structure possible? mcg
@ 2016-11-17  8:16 ` Philip Hudson
  2016-11-17 11:03 ` Marco Wahl
  2016-11-26 18:31 ` Karl Voit
  2 siblings, 0 replies; 4+ messages in thread
From: Philip Hudson @ 2016-11-17  8:16 UTC (permalink / raw)
  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 <giepen.m@googlemail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode - export as folder structure possible?
  2016-11-17  0:00 org-mode - export as folder structure possible? mcg
  2016-11-17  8:16 ` Philip Hudson
@ 2016-11-17 11:03 ` Marco Wahl
  2016-11-26 18:31 ` Karl Voit
  2 siblings, 0 replies; 4+ messages in thread
From: Marco Wahl @ 2016-11-17 11:03 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode - export as folder structure possible?
  2016-11-17  0:00 org-mode - export as folder structure possible? mcg
  2016-11-17  8:16 ` Philip Hudson
  2016-11-17 11:03 ` Marco Wahl
@ 2016-11-26 18:31 ` Karl Voit
  2 siblings, 0 replies; 4+ messages in thread
From: Karl Voit @ 2016-11-26 18:31 UTC (permalink / raw)
  To: emacs-orgmode

* mcg <giepen.m@googlemail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-26 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17  0:00 org-mode - export as folder structure possible? mcg
2016-11-17  8:16 ` Philip Hudson
2016-11-17 11:03 ` Marco Wahl
2016-11-26 18:31 ` Karl Voit

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).