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

From: Russell Dickenson <russelldickenson.att.gmail.com>
Date: Tue, 10 Jun 2014 09:16:36 +1000

Along the lines of a related enquiry, would this allow me to add to
the Textadept menu, an option to open my init.lua, perhaps with a
Textadept 'reset" to follow?

I am interested in recreating an option in the Geany editor, which
provides easy access to the customisation files.

Regards,

Russell

On 30 May 2014 04:22, Mitchell <m.att.foicica.com> wrote:
> 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 Mon 09 Jun 2014 - 19:16:36 EDT

This archive was generated by hypermail 2.2.0 : Tue 10 Jun 2014 - 06:28:52 EDT