Shift-double-click on CSV file

14 views
Skip to first unread message

Michael

unread,
May 17, 2020, 5:41:32 PM5/17/20
to Colton Software Fireworkz
I have only noticed this recently, but I find it rather puzzling that shift-double-click on a CSV file will get it loaded by Fireworkz, even though shift-double-click on a Fireworkz file will (as expected) get it loaded by the default text editor (in my case, Zap).

Is there anything configurable to change this behaviour?

Thanks,
Michael

Stuart Swales

unread,
Jul 5, 2020, 6:37:19 AM7/5/20
to colton-softw...@googlegroups.com
This will be a combination of two things methinks - the order in which
Zap and Fireworkz have been loaded, and the name of the file.

If Zap sees the DataOpen message first, it will claim it.

Fireworkz claims all Fireworkz filetypes on DataOpen message.

For other filetypes it also then considers whether Alias$@RunType_xxx is
set up to ...!Fireworkz.!Run i.e. there is no other current claimant of
ones it expects to see, and stops another instance being created if the
user has set Fireworkz up as the default editor for another foreign
filetype.

Failing that, you'd think it would just pass on the DataOpen message.

But no, given the world of networked data and archived data where
filetypes have been lost or never present, for TEXT,DOS,DATA filetypes
and untyped files, for DataOpen it has a quick last-gasp check of the
file's 'extension' to see whether it is a file that meets the above
criteria. DataLoad has a more thorough check.

So if you have 'labels/csv', it will be matched in that last-gasp phase
and loaded by Fireworkz.

Shift-double-click was a temporary bodge to load oddball files from the
Filer into !Edit during RISC OS development... In the spirit of
bodgeiness, I could make Fireworkz check the Shift state.

Stuart

--
Stuart Swales

Stuart Swales

unread,
Jul 5, 2020, 9:53:32 AM7/5/20
to colton-softw...@googlegroups.com
Checking the Shift state in (new) Fireworkz does work.

I notice that Filer_Run has a -shift bodge too, and (new) Fireworkz also
works with that.

Stuart

--
Stuart Swales
Reply all
Reply to author
Forward
0 new messages