Re: [code] [Textadept] Problem with URI_DROPPED

From: Mitchell <>
Date: Sun, 26 Feb 2017 09:02:49 -0500 (EST)

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 :)


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 26 Feb 2017 - 09:02:49 EST

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