Re: [textadept] Textadept 4.0

From: Robert <ro....at.web.de>
Date: Thu, 8 Sep 2011 08:08:02 +0200

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.

Robert
Received on Thu 08 Sep 2011 - 02:08:02 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:21:37 EST