Few more extensions and tool trigger env variable.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Psych
Enthusiast
Enthusiast
Posts: 239
Joined: Thu Dec 18, 2008 3:35 pm
Location: Wales, UK

Few more extensions and tool trigger env variable.

Post by Psych »

While playing around with userlibs and the external tools, I think it would be useful to have at least 2 new file extensions.

*.pbl for a LIB source file?
*.pbr for a RES source file?

Or maybe just add *.pb? to the file dialogs to display pb files when you want to select any pb source file (although this wouldn't help file file association).
Or maybe provide a way for us to add our own extensions we'd like to edit with purebasic?

The next is a little more useful, can we get the trigger that caused the external tool to execute supplied as one of the environment variables?

This would enable the tool to take different actions depending on how it was triggered. I realise I could simply add the tool many times over with different command line parameters as a workaround. If this is possible, would it also be possible to select multiple triggers (maybe with checkboxes) rather than having to choose a single trigger from the dropdown?
----------------------------------------------------------------------------
Commenting your own code is admitting you don't understand it.
----------------------------------------------------------------------------