[code][textadept] URI_DROPPED - info about other files being dropped, or extra events?

From: Procházka Lukáš Ing. <LPr.att.pontex.cz>
Date: Tue, 05 May 2020 16:07:45 +0200

Hello Mitchell,

is there a way to be informed which (all) files are being dropped during "events.URI_DROPPED"?

Something like:

events.connect(events.URI_DROPPED, function(file, all_files)
   --                                              ^^^^^^^^^ ---- To be added here
   -- Do something here
After a buffer has been created (which occurs also on file dropped), I run a content explorer.
However, when more file are being dropped, I'd like to run the explorer only for the last file being dropped (it may take some time to parse the file, which grows when more files are to be open), explorer to be skipped for all preceding files.
Or to add some other events - something like:
events.connect(events.BEFORE_FIRST_URI_DROPPED, function()
   -- My case: turn off content explorer
events.connect(events.URI_DROPPED, function(file)
   -- My case: Remember the 'file' being dropped in a variable
events.connect(events.AFTER_LAST_URI_DROPPED, function()
   -- My case: turn on content explorer, run it on last file dropped
Best regards,
Ing. Lukáš Procházka | mailto:LPr.att.pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
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 05 May 2020 - 10:07:45 EDT

This archive was generated by hypermail 2.2.0 : Wed 06 May 2020 - 06:43:14 EDT