[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.5 Showing the tree structure of local directories

Using the w3m-dtree command, you can display a tree of all subdirectories of a local directory, and browse it like a regular web page. The emacs-w3m buffer you get when you use this feature is very similar to the output of the external “tree” utility, hence the name. Emacs-w3m adds a bonus: if you call the command with a prefix argument, it will display files as well, turning emacs-w3m into a full-featured file browser.

Here is an example of what an emacs-w3m dtree run looks like:

 
/home/romain/.elisp/emacs-w3m/
 |-CVS/
 |-attic/
 |  +-CVS/
 |-autom4te.cache/
 |-doc/
 |  |-CVS/
 |  +-emacs-w3m/
 |-icons/
 |  +-CVS/
 |-patches/
 |  +-CVS/
 +-shimbun/
    +-CVS/

And with a prefix argument, you get something like this instead:

 
/home/romain/.elisp/emacs-w3m/ (allfiles)
 |-(f).cvsignore
 |-(f)BUGS.ja
 |-(f)COPYING
 |-[d]CVS/
 |  |-(f)Entries
 |  |-(f)Repository
 |  +-(f)Root
 |-(f)ChangeLog
 |-(f)ChangeLog.1
 |-(f)Makefile
 |-(f)Makefile.in
 |-(f)README
 |-(f)README.ja
D (Lynx-like keymap)
T (Info-like keymap)

Prompt for a local directory in the minibuffer, then display its tree structure. If called with a prefix argument (e.g. C-u D, or C-u T for the ‘Info-like’ keymap), show files in the directories as well (w3m-dtree).


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by TSUCHIYA Masatoshi on January 30, 2019 using texi2html 1.82.