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

From: James Reynolds <>
Date: Thu, 25 Jun 2020 17:22:46 +0000

>> 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?

asl = keys['asleft']
asr = keys['asright']
asu = keys['asup']
asd = keys['asdown']
print( asl, asr, asu, asd )

James Reynolds
Sr Systems Administrator
School of Biological Sciences
The University of Utah

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:22:46 EDT

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