I am trying to add new feature to Vim.
It's CLPUM(Command-line mode PopUp Menu)
Implementation is complete. Now, I am debugging.
Please check following site.
http://h-east.github.io/vim/
Is this interesting?
I want to be included this to (next version of) Vim.
Thanks.
--
Best regards,
Hirohito Higashi (a.k.a h_east)
2015-12-3(Thu) 7:09:43 UTC+9 Random832:
> On 2015-12-02, h_east wrote:
> > I am trying to add new feature to Vim.
> > It's CLPUM(Command-line mode PopUp Menu)
>
> Would this replace 'wildmenu'? Would it work with it, if someone
> still prefers the single-line display?
Yes and No.
It can be switched by the 'clpum' option.
- When 'clpum' option is on.
- <TAB> key's behavior:
When not started CLPUM, conform to 'wildmenu' and 'wildmode'.
When started CLPUM, Use the next match. This match replaces the previous one.
- <C-D> key's behavior:
CLPUM is triggered.
- When 'clpum' option is off, Vim keeps the backward compatibility.
- <TAB> key's behavior:
Conform to 'wildmenu' and 'wildmode'.
- <C-D> key's behavior:
List names that match the pattern in front of the cursor.
2015-12-3(Thu) 11:16:52 UTC+9 Gary Johnson:
I'll change to the following behavior.
- When 'clpum' option is on.
- <TAB> and <C-D> behavior:
When not started CLPUM, CLPUM is triggered.
When started CLPUM, Use the next match. This match replaces the previous one.
Thank you for your comments.
2015-12-3(Thu) 11:18:21 UTC+9 Random832:
Indeed!
I will try to support it.
2015-12-3(Thu) 22:56:17 UTC+9 Bram Moolenaar:
> Hirohito Higashi wrote:
>
> > Hi Bram and Vimmer,
> >
> > I am trying to add new feature to Vim.
> > It's CLPUM(Command-line mode PopUp Menu)
> >
> > Implementation is complete. Now, I am debugging.
> >
> > Please check following site.
> > http://h-east.github.io/vim/
> >
> > Is this interesting?
> > I want to be included this to (next version of) Vim.
>
> We currently have the 'wildmenu' behavior. That works OK for a short
> list of matches, when they are not too long. For long file names you
> only see one at a time, which is not useful.
>
> Using a menu can make this better. In your screenshots it seems it only
> works with 'cmdheight' set to 2, since it uses one line to show the
> mode. Or will it fall back to not showing the mode when 'cmdheight' is
> one?
Yes. When 'cmdheight' is one, do not show the completion mode.
Is it better to show?
>
> I don't think the completion itself should be different from 'wildmenu',
> only the way the results are displayed.
Of course.
Content of completion is the same as 'wildmenu'.