Re: [textadept] Textadept 4.0

From: mitchell <c....at.caladbolg.net>
Date: Wed, 28 Sep 2011 20:41:37 -0400 (EDT)

Robert,

On Thu, 8 Sep 2011, Robert wrote:

> On Wed, Sep 7, 2011 at 7:48 PM, mitchell <c....at.caladbolg.net> wrote:
> [...]
>>>
>>> My only big feature request is for adeptsense and keyboard commands to
>>> be more aware of which lexer is actually being used at the cursor
>>> position. It's a bit awkward for my key commands for the "<" key in
>>> hypertext inserting tags into my embedded javascript.
>>
>> If you modify core/keys.lua:240 to use:
>>
>> �buffer:get_lexer(true)
>>
>> instead of just buffer:get_lexer(), does that fix your problem? Adeptsense's
>> triggers are already aware of the current lexer so '<' in javascript does
>> not give me hypertext adeptsense. Key commands do not currently make this
>> distinction and if the above code doesn't break anything, I will probably
>> commit it.
>>
>> mitchell
>>
>> --
>
> How about line 182 in modules/textadept/snippets.lua as well? Seems to
> work, I'll be testing this.
> This was on my long time wish-Textadept-could-do-that-list, too. I
> hadn't thought it could be that easy.

This will be in the next release.

mitchell
Received on Wed 28 Sep 2011 - 20:41:37 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:22:09 EST