Home Download Buy Blog Forum Support

Builder Keybindings

Builder Keybindings

Postby michaelcdever on Wed Dec 14, 2011 8:31 pm

Hi all,

Just a a couple quick questions:

Is there anyway that I can assign a key binding to a builder? I have several tools I'd like to run on some files, one for compiling, one for code suggestions etc etc, and I'd like to be able to assign a keybinding to them, but I cannot see any way as of yet.

Is there a way to have a list of builder options pop out from the menu such as Tools -> Builder -> Haskell -> GHC | GHCi | hLint etc? Rather than making a seperate entry for each?

Also, is there anyway to get an embedded terminal in the program, I would love to be able to run stuff like irb/ghci from within the program.

And lastly, as mentioned above one of my tools provides refactoring suggestions, so is there any way to maybe highlight a line of code and on mouse hover show the corresponding suggestion?

Mick
michaelcdever
 
Posts: 4
Joined: Wed Dec 14, 2011 8:24 pm

Re: Builder Keybindings

Postby michaelcdever on Thu Dec 15, 2011 6:54 pm

Anyone have any idea on any of these issues?
michaelcdever
 
Posts: 4
Joined: Wed Dec 14, 2011 8:24 pm

Re: Builder Keybindings

Postby michaelcdever on Sun Dec 18, 2011 6:03 pm

No-one?
michaelcdever
 
Posts: 4
Joined: Wed Dec 14, 2011 8:24 pm

Re: Builder Keybindings

Postby jps on Wed Dec 21, 2011 10:36 pm

You can make a plugin that issues two commands (via window.run_command), the first would would call 'set_build_system', with the 'file' argument set to the build system of interest (e.g., 'Packages/Python/Python.sublime-build'), and the second would call 'build'.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests