> From your description, it is not clear if this will be part of a larger
> script that you are developing. If all that you want to do is ability to
> search and open the file, one of the existing plugins might be able to
> help you.

I'm adding a function to the potwiki script so that I can create a new
wiki page based on a template.

> But if you want to ask the user to select one and do something
> with that selection, you can use the glob() and inputlist() functions to
> do this, something like this:
>
> let files = glob(dir.'*Template')
> if files != ''
>   let filelist = split(files, "\n")
>   let sel = inputlist(['Select file:']+filelist)
>   if sel != -1
>     let selectedFile = filelist[sel]
>   endif
> endif

This example worked very well for me.  Thanks a ton!

Tom Purl

Reply via email to