Re: [code] [textadept] Advanced custom key bindings

From: Tomáš Zíma <tomas.att.tzima.cz>
Date: Fri, 23 Dec 2016 07:03:41 +0100

Thanks for help. It has turned out that it really was an issue with my
terminal emulator (mate-terminal=1.8.0). Under xterm, it works just fine.

Thanks.

   tzima

On 22.12.2016 17:17, Robert Gieseke wrote:
> Hi,
>
> this is likely an issue with your terminal. Have you tried the GUI
> version? I got it to work there (on Linux).
>
> Cheers,
> Robert
>
> Am 22/12/16 um 01:11 schrieb Tomáš Zíma:
>> Hello.
>>
>> I recently discovered Textadept and it certainly got my attention.
>> However, I can't seem to figure out how to define some bindings I am
>> used to.
>>
>> For example, this is what I tried to do in init.lua:
>>
>> keys.chome = function()
>> buffer:goto_pos(0)
>> end
>>
>> Pressing CTRL+HOME should now jump to the beginning of a buffer, but it
>> doesn't. Specifying a binding for HOME key alone works (i.e.
>> "keys.home"). Other combinations like CTRL+LEFT (i.e. "keys.cleft")
>> works as well.
>>
>> The same goes for CTRL+END etc.
>>
>> Is there a workaround for that? I use textadept-curses=9.0.1.
>>
>> Thanks.
>>
>> tzima

-- 
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 Fri 23 Dec 2016 - 01:03:41 EST

This archive was generated by hypermail 2.2.0 : Fri 23 Dec 2016 - 06:44:42 EST