https://invisible-island.net/vile/perl/


NAME

dirlist - list a directory hierarchy

SYNOPSIS

In .vilerc:

    perl "use dirlist"

In [x]vile:

    :dirlist

and then provide responses at the ensuing prompts.

DESCRIPTION

The dirlist program will load a buffer with the names of files matching a certain pattern in and below a specified directory. It provides no hypertext links, nor any kind of fancy coloring. All it provides is a list of pathnames relative to the starting point along with certain information that the author finds useful, namely the file's size, date, and symlink pointer (if there is one).

You can open a file simply by placing your cursor at the beginning of one of these pathnames and then use ^X-e (edit-file) to do the actual opening.

EXAMPLE

This example assumes that you've either placed

    perl "use dirlist"

in your .vilerc or simply

    use dirlist;

in your vileinit.pl file.

From either vile or xvile, do

    :dirlist

The editor will repond with the following prompt:

    Directory to search in? .

As usual, the '.' indicates the current directory and is the default response. The next prompt is:

    File name pattern? *

The '*' indicates that all filenames should be matched and is also the default response.

If both default responses are chosen while in an xvile build directory, you might see something like the following (abbreviated) list populate a buffer named dirlist-.-*.

     2048 Dec 29 23:28 .
    54336 Dec 29 21:15 ./api.o
    70288 Dec 29 21:14 ./basic.o
 ...
     2048 Dec 29 21:17 ./filters
    36500 Dec 29 21:16 ./filters/ada-filt.o
    38816 Dec 29 21:16 ./filters/awk-filt.o
 ...
   201740 Dec 29 21:14 ./x11.o
  2868484 Dec 29 23:28 ./xvile

AUTHOR

Kevin Buettner