Re: [code] [textadept] In-place Menu Editing

From: Mitchell <m.att.foicica.com>
Date: Thu, 29 May 2014 14:22:38 -0400 (Eastern Daylight Time)

Hi Robert,

On Thu, 29 May 2014, Robert Gieseke wrote:

> Hi,
>
> Am 28/05/14 07:50, schrieb Mitchell:
>> I've just committed a change that allows for in-place menu editing.
>
> this is very useful!
>
> []
>
>> Similarly you can append single
>> menu items:
>>
>> tools[#tools + 1] = {'Label', command}
>>
>> `textadept.menu`'s API now exposes `menubar`, `context_menu`, and
>> `tab_context_menu` table fields and removes the `set_menubar()` and
>> `set_contextmenus()` functions.
>
> it's not possible to do something like
>
> local menubar = textadept.menu.menubar
> menubar[#menubar + 1] = menubar[#menubar]
> menubar[#menubar - 1] = {title='My Menu', {'Goodbye', quit}}
>
> to add something before the help menu, right?

That should work. I will commit a fix later today for that bug. Thanks for
the report!

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 29 May 2014 - 14:22:38 EDT

This archive was generated by hypermail 2.2.0 : Fri 30 May 2014 - 06:52:00 EDT