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

From: Robert Gieseke <rob.g.att.web.de>
Date: Thu, 29 May 2014 17:43:17 +0200

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?

Thanks,
Robert

-- 
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 - 11:43:17 EDT

This archive was generated by hypermail 2.2.0 : Fri 30 May 2014 - 06:51:56 EDT