Page 1 of 1

Allow external tools to work off items in the project view

Posted: Tue Apr 08, 2008 12:39 am
by sanderson
I love using the external tools options. One of the things I use it for is checking files out of perforce. Right now I open the file in the editor, then select the external tool for checking the file out. What I'd like to be able to do is select 4 or 5 files, or a directory, in the project view, and check them out en-masse.

Re: Allow external tools to work off items in the project view

Posted: Tue Apr 08, 2008 12:23 pm
by sorin_ristache
Hello,

There is the ${pd} editor variable (Project Directory) which I think you can use together with a file pattern for the project files that you want to specify in the command line of an external tool, for example: ${pd}/subdir/*.xml. We will add an editor variable for the current selection of the Project view which can include one file/directory or a set of files/directories.


Regards,
Sorin

Re: Allow external tools to work off items in the project view

Posted: Fri Apr 11, 2008 11:45 pm
by sanderson
Great, I'll look forward to the new variable. Using ${pd} for my case doesn't really work.

Regarding ${pd}, though, is that the directory of the project file, or the file selected in the project view?

Re: Allow external tools to work off items in the project view

Posted: Mon Apr 14, 2008 10:33 am
by sorin_ristache
${pd} represents the directory of the project file.


Regards,
Sorin