From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: dir or folder structure into org-file? Date: Mon, 21 Sep 2009 00:44:31 +0200 Message-ID: <871vm1nsmo.fsf@gmx.de> References: <87ws41tata.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpV9A-0007IY-DZ for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 18:44:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpV95-0007Ho-9q for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 18:44:43 -0400 Received: from [199.232.76.173] (port=33741 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpV95-0007Hk-7I for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 18:44:39 -0400 Received: from mail.gmx.net ([213.165.64.20]:43534) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MpV94-0000CM-15 for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 18:44:38 -0400 In-Reply-To: (Erwin Panen's message of "Sat, 19 Sep 2009 20:17:54 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: erwinpanen@fastmail.fm Cc: emacs-orgmode@gnu.org Hi Erwin, if you don't need links, you could use Eric Schultes org-babel package, too. Provided `tree' is installed, this here will put the tree beneath ~/.emacs.d below, and export the results only. The `-d' option tells `tree' to show directories only. #+begin_src sh :results output :exports results echo "Directory structure:" tree -d ~/.emacs.d/ #+end_src If you now pres `C-c C-c' inside the source block, the result will be added. Here's what it looks like on my machine (org's contrib directory only in this case: #+resname: #+begin_example Directory structure: /home/sebastian/.emacs.d/lisp/ext/org-mode/contrib/ |-- babel | `-- lisp | `-- langs |-- lisp |-- packages | `-- org-export-freemind-0.1.0 `-- scripts #+end_example Best wishes Sebastian Erwin Panen writes: > Matt, thanks a lot, this is exactly what I'm looking for :-) > I've downloaded and enabled it, but up to now I haven't really managed to use > it... > I'll have to digg somewhat deeper > > Cheers, > > Erwin > > Matt Lundin wrote: >> Erwin Panen writes: >> >>> Not sure this is the right place to ask; >>> I'm looking for a way to import a complete file structure into an >>> org-mode buffer that will be saved to an org-mode file. >>> >>> I assume org or emacs must be able to do this, but I haven't found >>> anything googling around.. >>> >>> Thanks for your help! >> >> I believe org-fstree is a good option for this: >> >> http://burtzlaff.de/org-fstree/ >> >> Best, >> Matt