Re: [code] [textadept] FR: Select Snippet to auto-OK

From: Mitchell <>
Date: Fri, 19 Jun 2020 12:20:54 -0400 (EDT)

Hi Lukas,

On Fri, 19 Jun 2020, Procházka Lukáš Ing. wrote:

> Hi Mitchell,
> thank for the answer,
>> Well, the dialog code is part of gtDialog[1], which is a C
>> application/library, so pressing a button causes the dialog to return a
>> value that is consumed by ``. That value (the
>> snippet text) is passed to `textadept.snippets.insert()`. There is no way
>> to programatically interact with the dialog (e.g. see how many items are
>> visible, click "Ok", etc.). I hope I'm answering your question.
>> By the way, those are the functions starting in Textadept 11. Textadept 10
>> uses `textadept.snippets._select()` and `textadept.snippets._insert()`.
> so probably I'll define some key chains which will use
> 'textadept.snippets.insert(<my-arbitrary-text>)' to insert snippet-like (but
> actually an arbitrary) text.

Yes, that should work.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Fri 19 Jun 2020 - 12:20:54 EDT

This archive was generated by hypermail 2.2.0 : Sat 20 Jun 2020 - 06:27:24 EDT