Page 1 of 1

"Editor for F4" command agruments

Posted: 2010-01-20, 13:26 UTC
by reinstein
Is there a way to configure TC to use %P instead of %p for the F4 editor command?

Posted: 2010-01-20, 14:42 UTC
by MVV
AFAIK, TC uses %P if it detects 32-bit editor application and %p if not.

Posted: 2010-01-21, 08:46 UTC
by reinstein
This is true if the F4 Editor configuration string is the executable name.
If, however, the string is composed of the command name and some arguments (as in "C:\UE\15.20\uedit32.exe /i=C:\cfg\uedit32.ini") or it is a variable expression (like %Editor%), TC will default to %p.
TC can instead examine the first token in the expanded string, or allow configuring the default behavior (or both).

Posted: 2010-01-21, 10:54 UTC
by MVV
I think it would be better if TC will search %p or %P in configured string and insert filename instead, or use default appending if not found. Or at least not to use %p by default if editor file can't be opened and application type can't be detected (e.g. because editor string contains not only editor path).

Posted: 2010-01-21, 20:26 UTC
by ghisler(Author)
Indeed the F4 editor uses %1 for DOS names and "%1" for long names. You can add these yourself to force the one or the other, e.g.

editor.exe "%1"

Posted: 2010-01-21, 20:33 UTC
by MVV
ghisler(Author) wrote:Indeed the F4 editor uses %1 for DOS names and "%1" for long names. You can add these yourself to force the one or the other, e.g.

editor.exe "%1"
That's excellent!
But I think you should note this detail in help file on the "Configuration - Edit/View" page. :)

Posted: 2010-01-25, 14:54 UTC
by reinstein
Nice.
Just for the record, I used a workaround in the form of a "batch to exe" converter (http://www.f2ko.de/English/b2e/index.php).