Re: [textadept] Key commands in menu

From: mitchell <>
Date: Tue, 29 Mar 2011 21:07:44 -0400 (EDT)

Hi Robert,

On Tue, 29 Mar 2011, Robert wrote:

> Hi,
> there was some Textadept discussion on the Lua mailing list[1] with
> questions about key commands displayed in the menu.
> Mitchell,
> have you considered creating a string representation of the keys table
> entries and using these in the menu creation?

I think at this point I've considered everything under the sun that I can
think of and every time there is either a dead-end, ugly hack,
corner-case, etc. that I come upon after investing a decent amount of
time; at this point hard-coding is looking desirable. At any rate I am not
going to work on this seeing as I don't use the menu. I will accept
patches of course.


> For the table entries I iterate over them and concatenate their string
> representations for a key.
> I tested this and it works for simple functions and table entries like
> {, _buffer } but not for those buffer functions that are
> not set within Textadept because the function, e.g. _buffer.undo, is
> not the same in the menubar and keys tables.
> I think with the old string based approach this might be possible but
> I'm not sure about the new metatable based approach.
> It's of course not fully dynamic, but you could do
> = nil
> = new_buffer
> and the menu is updated.
> Robert
> [1]
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at

Received on Tue 29 Mar 2011 - 21:07:44 EDT

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