RE: Gui popup and text mode Menus improvements patch to try
> -----Original Message-----I posted 'inteli.vim' recently that does context sensative completion of
> From: Bram Moolenaar [SMTP:Bram@...]
> Sent: Wednesday, June 28, 2000 6:23 PM
> To: Michael Geddes
> Cc: 'Vim Dev'
> Subject: Re: Gui popup and text mode Menus improvements patch to try
> Michael Geddes wrote:
> > This patch (against 5.7a) includes a new win32 command :popup that
> should be
> > easily done in gtk/mac (anyone?). Popup pops up the named menu at the
> > text-cursor position (not the pointer position). This was added so that
> > intelli-menus would work a bit nicer.
> Can you explain how this works? Hint: I don't know what intelli-menus
class methods (giving a popup list of all relevent methods) I did it before
using an 'x' menu ( menu 1000.1 x.Method ) and then using simalt 'x'
(which is win32, I know).
It makes use of a special exuberant ctags file done on header files only (or
tags file, but that is often not as good).
It is triggered by <c-space> in insert mode.
Intellisense menus are a MSDev thing, that (in msdev) automagically popup
(or get triggered with <c-space> ) with a list of possible methods (and
Here is a description of what the macros do that might help.
> > In doing this (wanting intelli to work in text mode as well), I foundIncluded in that patch (along with visual support - feedback on the cludge
> > there was a bug in :emenu that would cause funny behaviour in insert
> > using <c-o>. It would use the normal-mode menu when executed from
> > <c-o>:emenu, only in insert mode.
> > menu Fred.Test iHello<esc>
> > exe "normal i\<c-o>:emenu Fred.Test\<cr>"
> > inserts "iHello" - which is definitely wrong.
> Yeah, that should be fixed.
welcome :) )
> > When using popup and tearoff, non-menu elements were presented asEven better reason to fix it (patch includes this too). It would be nice to
> options in
> > complete/wildmenu, and the '\' characters were still showing (removed in
> > emenu). The tearoff menu-item also appeared as a choice when completing
> > from emenu. (If I wanted to tearoff, I'd use :tearoff)
> That's on Win32 only, other systems don't have the tearoff as a separate
get popup working in gtk, and even nicer if it could be available in the
console version in a manner similar to the emenu/wildmenu combination -
thought that can always be done explicitly with :emenu ]Menu.<completion
People using emenu (which is a very keyboard -oriented thing) aren't
generally going to be using tearoffs (which is a very mouse -oriented thing)
- which can be accessed fromthe menus anyway.
One thing that patch did was to be more explicit about menus starting with
']' being hidden across platforms.
I THINK this is a good thing.
> hundred-and-one symptoms of being an internet addict:
> 128. You can access the Net -- via your portable and cellular phone.
> /// Bram Moolenaar Bram@... http://www.moolenaar.net
> \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org