Re: [code] Textadept: scripting a symbol auto-highlighter

From: Mitchell <>
Date: Tue, 6 Nov 2018 08:36:46 -0500 (EST)

Hi Phil,

On Tue, 6 Nov 2018, Phil S. wrote:

> Follow-up on the below:
> #1 if editing.lua could also export `clear_highlighted_words` that would be
> mighty handy too
> #2 the clear-on-esc in line 468 never seems to occur at my end (v10.2 Linux
> 64bit build) --- but if #1 above were to happen, one could call it in
> addition to buffer:cancel() on one's own keys.esc handler

I've pushed a fix[1] to make sure 'Esc' always clears highlighted words. This wouldn't have happened otherwise if you defined `keys.esc`.

You can now `events.emit(events.KEYPRESS, 0xFF1B)` to simulate an Esc keypress to clear highlighted words programatically. I prefer not to export `textadept.editing.clear_highlighted_words()`.



You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Tue 06 Nov 2018 - 08:36:46 EST

This archive was generated by hypermail 2.2.0 : Wed 07 Nov 2018 - 06:30:13 EST