Re: [code] [textadept] Working with clipboard

From: Qwerky <mr.qwerky.att.gmail.com>
Date: Tue, 17 Sep 2019 12:39:13 -0600

Hi Mitchell,

On 2019-09-17 11:07, Mitchell wrote:
> Hi Qwerky,
>
> On Tue, 17 Sep 2019, Qwerky wrote:
>
>> Hi Mitchell,
>>
>> Although I have looked at `buffer:set_target_range()` and
>> `buffer:replace_target()` before, I really do not understand how
>> `target` is
>> used in Textadept, even after studying the API documentation!  I would
>> appreciate a pointer or some additional help to understand that.  I'm
>> sure
>> your code would be much better than mine.
>
> The "target" functions pretty much like a selection, only it doesn't
> alter the actual selection. Textadept makes use of this in a lot of
> instances where it wants to manipulate text without affecting whatever
> is currently selected.
>
> Cheers,
> Mitchell

Got it, thanks!

qwerky

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 17 Sep 2019 - 14:39:13 EDT

This archive was generated by hypermail 2.2.0 : Wed 18 Sep 2019 - 06:33:15 EDT