Page 1 of 1
PB_Tool_File
Posted: Tue Oct 27, 2009 1:32 pm
by PB
In the manual in the "External tools" section, it lists some environment variables that you can access for your source. Unfortunately, there is no "PB_Tool_File" variable to show the full path and name of the current loaded source. Could this be added, please?
Re: PB_Tool_File
Posted: Tue Oct 27, 2009 1:48 pm
by ts-soft
What is with %PATH and %FILE?
or have i misunderstand you?
Re: PB_Tool_File
Posted: Tue Oct 27, 2009 1:53 pm
by PB
They're not environment variables; they are commandline arguments, which I don't want.
From the manual:
Code: Select all
PB_TOOL_Cursor - same as the %CURSOR token for the commandline
PB_TOOL_Selection - same as the %SELECTION token for the commandline
PB_TOOL_Word - same as the %WORD token for the commandline
And this was added for the v4.40 beta:
So I'd like to see this also added to the above group:
Code: Select all
PB_TOOL_File - same as the %FILE token for the commandline
Re: PB_Tool_File
Posted: Tue Oct 27, 2009 2:29 pm
by freak
Adding %FILE to the commandline parameters causes the file to be saved to disk so it is up to date with the editor contents. Environment variables only exist for information that does not need such additional action and can therefore always be provided.
Re: PB_Tool_File
Posted: Wed Oct 28, 2009 10:08 am
by PB
@Freak: So, are you saying that it will be added? I need my tool to know which source is being edited, without saving the source. Currently I'm doing it by reading the title bar of the IDE, which is set to show the full path of the current source, but not everyone will have that setting enabled, so I need a different bullet-proof way to know it.
Re: PB_Tool_File
Posted: Wed Oct 28, 2009 5:44 pm
by freak
> So, are you saying that it will be added?
Probably not.
Re: PB_Tool_File
Posted: Wed Oct 28, 2009 8:07 pm
by PB

How else can I achieve my goal then?