Wednesday, December 26, 2012

Re: Capture output of command line completion in script

Hi Bram!

On Mi, 26 Dez 2012, Bram Moolenaar wrote:

>
> Christian Brabandt wrote:
>
> > On Di, 25 Dez 2012, Luca Pette wrote:
> >
> > > On Saturday, 26 March 2011 00:10:52 UTC+1, Rickard Lindberg wrote:
> > > > Hi,
> > > >
> > > >
> > > >
> > > > If I type CTRL-D on the command line it will show a list of possible
> > > >
> > > > matches (:e foo<CTRL-D>).
> > > >
> > > >
> > > >
> > > > Is it possible to capture this result list in a vim script?
> > >
> > > I was searching for this too. Any new suggestion? It would be
> > > awesome if it would be possible to capture the output of command
> > > line completion with vimscript/
> >
> > Bram,
> > here is a patch, that enables redirecting when using <ctrl-d> for
> > commandline completion:
>
> Hmm, I wonder why this request was made. Wouldn't it be more useful to
> add a Vim script function to access the completions?

Right. But shouldn't :redir also be useable to capture all available
completions? We can still think about adding another completion
vimscript function for returning all matches.

regards,
Christian
--
Gegner bedürfen einander oft mehr als Freunde, denn ohne Wind gehen
keine Mühlen.
-- Hermann Hesse

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: