Re: Bug with :tree
Dan Sharp <[email protected]> Thu, 17 Jun 2004 10:11:00 -0400
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Bram Moolenaar wrote:
> Dan Sharp wrote:
>
>>I am having a problem with the :tree command in that it doesn't appear
>>to list directory names. Running a simple script like
<snip>
> This is a mistake in the documentation. When you don't specify any file
> or directory pattern, all files are selected. Directories are not
> selected. This works like using {filename = .*}.
>
> You can get both directories and files with:
>
> :tree . {filename = .*} {dirname = .*}
>
> Sorry for the confusion. It was done this way, because getting a mix of
> directory and file names is less useful than getting a list of files
> only. I use it in a few of my Aap scripts.
Playing around later I tried the above and got the full list, like you
said. I think the default of just files is a good one. Turns out that
for my use I need separate lists of directories and files anyway.
Thanks!
Dan Sharp
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND