Re: [code] [Textadept] Problem with URI_DROPPED

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Sun, 26 Feb 2017 18:17:45 +0100

I was thinking about that and was going to go through the code

El 26 feb. 2017 15:02, "Mitchell" <m.att.foicica.com> escribió:

> Hi Giovanni,
>
> On Sun, 26 Feb 2017, Giovanni Salmeri wrote:
>
> Just a little doubt out of curiosity: Scintilla seems to know very well
>> which is the buffer position closest to the mouse coordinates, because
>> when I drag a file into the document I see the *caret* (non only the
>> mouse pointer) moving accordingly. So I imagine that if Scintilla
>> exposed in the event SCN_URI_DROPPED this value (which it anyway
>> calculates!), it would be sufficient something like this:
>>
>> events.connect(events.URI_DROPPED, function(uri, position)
>> buffer:insert_text(position, uri)
>> return true
>> end, 1)
>>
>> If this is right, I could make a request to the developper of
>> Scintilla, and (almost) no code should be added to Textadept. But
>> perhaps I am completely wrong!
>>
>
> Your analysis is correct. You should be able to make such a request :)
>
> Cheers,
> Mitchell
> --
> 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.
>
>

-- 
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 Sun 26 Feb 2017 - 12:17:45 EST

This archive was generated by hypermail 2.2.0 : Mon 27 Feb 2017 - 06:30:33 EST