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

From: Procházka Lukáš Ing. <>
Date: Fri, 19 Jun 2020 16:45:19 +0200

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.



> Cheers,
> Mitchell
> [1]:

Ing. Lukáš Procházka |
Pontex s. r. o.      | | | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
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 - 10:45:19 EDT

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