Re: [code] [textadept] Textadept 6.0 beta 3

From: Tang Daogang <daogangtang.att.gmail.com>
Date: Wed, 17 Oct 2012 11:54:43 +0800

I use

    keys.mc <http://keys.mz> = keys['c^']

but it doesn't work on my LXterminal, Ubuntu 12.04.

On Tue, Oct 2, 2012 at 9:38 PM, Mitchell <m.att.foicica.com> wrote:

> Tang,
>
>
> On Tue, 2 Oct 2012, Tang Daogang wrote:
>
> hi,
>>
>> It seems doesn't work.
>>
>> I find some lines in keys.lua
>>
>> local function move(s) buffer[mark_mode and s..'_extend' or s](_G.buffer)
>> end
>>
>> keys['c^'] = function() mark_mode = not mark_mode end
>> keys['c]'] = buffer.swap_main_anchor_caret
>>
>> this line 'function() mark_mode = not mark_mode end' seems do nothing
>> rather than assignment.
>>
>
> On a US English keyboard and in LXTerminal, when I press Ctrl+6 and then
> press arrow keys (without Shift), I get a selection.
>
> In your ~/.textadept/init.lua you might want to test something like
>
> keys.mz = keys['c^']
>
> or another key combination that your keyboard supports. 'c^' may not work
> on all keyboards.
>
> You are correct that the function you mention does nothing other than
> assignment, but the work is being done in the move() function -- testing
> what the assignment is before performing the appropriate action.
>
>
> Mitchell
> --
> 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.
>
>

-- 
Nothing is impossible.
-- 
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 Tue 16 Oct 2012 - 23:54:43 EDT

This archive was generated by hypermail 2.2.0 : Wed 17 Oct 2012 - 06:35:40 EDT