Re: [code][textadept] New keybinding syntax

From: Mitchell <>
Date: Wed, 1 Jul 2020 12:39:15 -0400 (EDT)

Hi Robert,

On Wed, 1 Jul 2020, Robert Gieseke wrote:

> On 01.07.20 16:04, Mitchell wrote:
>> So `keys['meta+a']` would be Alt+A in curses, Cmd+A on Mac, and ? on Win32/Linux? The trouble is that Cmd and Alt/Option are separate modifiers on Mac and I don't see how they can easily be distilled into a single modifier.
> I think the Option/Alt key on Macs mostly works like "Alt Gr" on Linux
> to get alternative character variants, i don't have a Mac at hand right
> now, but i'm not sure if there is any Mac key binding in Textadept which
> works with "Option".
>>> Maybe i'm missing something though or it makes a clear distinction
>>> between platforms more difficult ...
>> Are you trying to have one key sequence string that can apply to all platforms? If I want a single key setting for all platforms, I use this form:
>> keys[CURSES and 'meta+.' or OSX and 'ctrl+.' or 'alt+.'] = ...
> Basically i was hoping to have that simplified ... but i might be wrong
> and "Option (Alt)" can be used in TA on Mac.

Option+Letter generally does not work, but Option+Symbol (e.g. Esc, arrows, Tab, Function keys, etc.) do, and Textadept uses these bindings.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 01 Jul 2020 - 12:39:15 EDT

This archive was generated by hypermail 2.2.0 : Thu 02 Jul 2020 - 06:34:17 EDT