Page 1 of 1

Running perforce via external tools

Posted: Mon Mar 09, 2015 6:32 pm
by teknogrebo
Hi there. We use perforce were I work, and as there is no perforce plugin for Codelite that I've found, and I can't find any documentation for writing a plugin (but that's another question for another sub-forum), I thought I would just add a little functionality by calling p4 from the command line. I can't find any documentation for what macros can be used in the arguments option. All I need at the moment is to get the full path to the current activated file. I found $(CurrentFileName) in another post on these forums, but that just returns the filename without the path or extension. Could somebody please direct me to any documentation about these macros, or, at the very least, tell me which one I need.

TIA,

Tom

Re: Running perforce via external tools

Posted: Mon Mar 09, 2015 8:22 pm
by eranif
To get you started with a plugin skeleton, check this document: http://codelite.org/Developers/CreatePlugin

To get list of macros, available to the "External Tools" plugins, go to:

Plugins->External Tools->configure external tools

Click on the "New" button, when the dialog pops, click the "Help" button it will give you this dialog:
1.png
TIP: you can right click on a macro name to copy its name

Eran

Re: Running perforce via external tools

Posted: Tue Mar 10, 2015 5:55 pm
by teknogrebo
Well that was embarrassingly simple. Thank you. I have no idea why I didn't spot the help button :)