Re: [Ext] [code] Moving around and selecting text with arrow and modifier keys

From: Mitchell <>
Date: Thu, 25 Jun 2020 13:37:42 -0400 (EDT)

Hi James,

On Thu, 25 Jun 2020, James Reynolds wrote:

>>> I can't see the alt-shift-arrow keybinding in the keys.lua file. I tried to manually set it with the following but it didn't work.
>>> keys['asleft'] = buffer.word_left_extend
>>> keys['asright'] = buffer.word_right_extend
>> This works for me when I put it in my *~/.textadept/init.lua* in Mac. I had to reset or restart Textadept to see the changes.
> Ugh, it works for me now too. I must've done something wrong yesterday.
>> Alt+Shift+Arrow is for rectangular selection, which for single lines looks like single-character selection. When you start using the Up and Down keys, it becomes clear what the intent is.
> Oh yeah...
> I tried to swap the cntl-shift-arrow and alt-shift-arrow keys and it doesn't work. I debugged it and the following prints out "nil nil nil nil". I'm guessing the alt-shift-arrow keys are defined in C and not in keys.lua, is that right?

Yes, that's right. You'll have to manually map the keys to the buffer functions.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Thu 25 Jun 2020 - 13:37:42 EDT

This archive was generated by hypermail 2.2.0 : Fri 26 Jun 2020 - 06:35:38 EDT