Re: [textadept] add menu items from a modules

From: Robert <ro....at.web.de>
Date: Tue, 5 Jul 2011 21:34:39 -0500

On Tue, Jul 5, 2011 at 5:12 PM, anton <averbit....at.yandex.ru> wrote:
> Hi all,
>
> it was probably asked but I haven't found it.
> How can I change menu from other modules. I've tried the na´ve
> solution like
>
> table.insert(_m.textadept.menu.menubar, #_m.textadept.menu.menubar,
> {Menu Item Body})
> _m.textadept.menu:setmenu(_m.textadept.menu.menubar)

> _m.textadept.menu.setmenu(_m.textadept.menu.menubar)

Just a point (not a colon ":") after menu should work.

I posted some example usages here: https://gist.github.com/672362
(The comment about latest hg is obsolete.)

Robert
Received on Tue 05 Jul 2011 - 22:34:39 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:13:03 EST