Re: Leveraging the new 'incsearch' functionality from a Vim plugin

2018-08-30 Fir de Conversatie Bram Moolenaar


Yegappan wrote:

> Is it possible for a Vim plugin use the new 'incsearch' functionality
> in a custom command? For example, I would like to enable this
> functionality for the new cfilter plugin. The cfilter plugin adds a
> command ":Cfilter" that accepts a search pattern. When the user
> types the search pattern, it would be useful to get the 'incsearch'
> functionality.

Not yet, but we could have a -complete argument to :command for this.
Something like "-complete=pattern".  It's probably sufficient to just do
this for the first argument.

-- 
I think that you'll agree that engineers are very effective in their social
interactions.  It's the "normal" people who are nuts.
(Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Leveraging the new 'incsearch' functionality from a Vim plugin

2018-08-29 Fir de Conversatie Christian Brabandt


On Mi, 29 Aug 2018, Yegappan Lakshmanan wrote:

> Is it possible for a Vim plugin use the new 'incsearch' functionality
> in a custom command? For example, I would like to enable this
> functionality for the new cfilter plugin. The cfilter plugin adds a
> command ":Cfilter" that accepts a search pattern. When the user
> types the search pattern, it would be useful to get the 'incsearch'
> functionality.

I don't think this is currently possible for custom commands other than
:s, :g, :v, :vimgrep and :sort and its variants.

Best,
Christian
-- 
Der Newtonische Irrtum steht so nett im Konversationslexikon, 
dass man die Oktavseite nur auswendig lernen darf, um die Farbe fürs 
ganze Leben los zu sein.
-- Goethe, Maximen und Reflektionen, Nr. 979

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Leveraging the new 'incsearch' functionality from a Vim plugin

2018-08-29 Fir de Conversatie Tony Mechelynck
On Thu, Aug 30, 2018 at 5:33 AM Yegappan Lakshmanan  wrote:
>
> Hi,
>
> Is it possible for a Vim plugin use the new 'incsearch' functionality
> in a custom command? For example, I would like to enable this
> functionality for the new cfilter plugin. The cfilter plugin adds a
> command ":Cfilter" that accepts a search pattern. When the user
> types the search pattern, it would be useful to get the 'incsearch'
> functionality.
>
> Thanks,
> Yegappan

Maybe by defining a new |:command-completion|, complete=pattern ?

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.