News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Tools command line

Started by FriedV, May 09, 2008, 02:33:18 PM

Previous topic - Next topic

FriedV

Is it possible to configure the tools in the IDE to ask for  command line params as in *.bat files:

librarian.bat ->
@echo Librarian
avr-ar -crsv d:\common\libmyavr.a %1 ?

Then I wouldn't need to open a console and call this bat file explicitely.
Thx, Fried

dmoore

Assuming %1 is supposed to be a file (or list of files) then my ShellExtensions plugin (see the link to the CBIL project page in my sig, win32 binaries at the download page) will be well suited to your needs. This plugin allows you to add custom commands to the main menu and context menus (when you right click on files in the project page or in an open file's editing pane or in the file browser that is included in the plugin).

The command line supports a few useful variables, such as $dir, $file and $inputstr. $dir and $file is the file or directory name that the user has right clicked on. For example, you could specify the following command

svn commit $dir -m "$inputstr{Enter your commit message}"

which will run an svn commit on the selected directory and prompt you for a message in a dialog box.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]