Run arbitrary commands

Request Features and Feature Changes

Run arbitrary commands

Postby chunkyq » Sat Dec 20, 2008 6:03 pm

Launch is handy, but I'd like to able to run an arbitrary command with the press of a key, which it seems I cannot do (please correct me if this is incorrect). Many editors provide to ability to assign a hotkey and name to a command, which can be extended with some for of switches (such as %n for the file name).

My concern right now is LaTeX, which I work with regularly. I could continue to use a LaTeX-specific editor, but I'd like to edit everything with one program.
chunkyq
User
 
Posts: 6
Joined: Fri Dec 19, 2008 8:49 pm

Re: Run arbitrary commands

Postby cody » Sat Dec 20, 2008 10:48 pm

With Launch you can currently configure any number of arbitrary commands for a file type and set the default command that will be run when hitting F5. But its only possible to have one command per file type active on the hot key at a time.

I could be possible to extend this to support having more command hotkeys. What is a typical interface from the user's perspective for using this ability?

I can also add LaTeX support to the launch plugin, what are some of the typical executables used with LaTeX files?


Thanks,

Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Run arbitrary commands

Postby chunkyq » Sun Dec 21, 2008 9:16 pm

Forgive my ignorance, configuring the commands is actually pretty straightforward. To clarify my request, what I would like is similar to what exists right now, but with a few additions.

  • Global or general option in the 'File Type' menu.
  • Allow addition of arbitrary file types to menu.
  • Add hotkey column to the commands table.

I'd like to add that I appreciate how wuickly and helpfully you've responded to all of my posts.
chunkyq
User
 
Posts: 6
Joined: Fri Dec 19, 2008 8:49 pm

Re: Run arbitrary commands

Postby cody » Mon Dec 22, 2008 4:34 am

Whats the 'File Type' menu?

Do you mean the choice control near the top of the Launch configuration dialog?


Thanks,

Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Run arbitrary commands

Postby chunkyq » Mon Dec 22, 2008 9:54 pm

Sorry for the lack of clarity. Yes, I'm referring to the Launch configuration window.
chunkyq
User
 
Posts: 6
Joined: Fri Dec 19, 2008 8:49 pm

Re: Run arbitrary commands

Postby bak » Sat Jan 10, 2009 2:44 am

Hello,

I couldn't find a way to add an entry for the OCaml language in the Launch configuration dialog.
So I edited the Launch plugin source code and "manually" added an entry for OCaml.
bak
Limited User
 
Posts: 2
Joined: Sat Jan 10, 2009 2:34 am

Re: Run arbitrary commands

Postby cody » Sat Jan 10, 2009 3:45 am

bak wrote:Hello,

I couldn't find a way to add an entry for the OCaml language in the Launch configuration dialog.
So I edited the Launch plugin source code and "manually" added an entry for OCaml.


Ok, do you want to share a patch?
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Run arbitrary commands

Postby bak » Sat Jan 10, 2009 4:24 am

Sure. I submitted a patch on google code (#262). Sorry, I couldn't add it as an "Enhancement". It's shown as a "Defect".
Keep up the good work!
bak
Limited User
 
Posts: 2
Joined: Sat Jan 10, 2009 2:34 am

Re: Run arbitrary commands

Postby cody » Sat Jan 10, 2009 5:28 am

bak wrote:Sure. I submitted a patch on google code (#262). Sorry, I couldn't add it as an "Enhancement". It's shown as a "Defect". Keep up the good work!


Applied thanks,


Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Run arbitrary commands

Postby chunkyq » Sat Jan 24, 2009 9:59 pm

Typical executables used with LaTeX are:

  • latex
  • dvips
  • pdflatex
  • ps2pdf
  • dvipng
  • latex2html

There are many more, but those are the more common ones.
chunkyq
User
 
Posts: 6
Joined: Fri Dec 19, 2008 8:49 pm

Re: Run arbitrary commands

Postby cody » Sat Jan 24, 2009 10:16 pm

Thanks,

Added a handler for LaTex to the next version of the plugin.


Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron