Home Download Buy Blog Forum Support

Fast switching of build systems

Fast switching of build systems

Postby emonkey on Thu Nov 14, 2013 8:56 pm

I'd love a fast-switch for build systems, similar to ctrl+alt+p to switch projects. Maybe the shortcut could be ctrl+alt+b
I usually have to define a number of build targets (debug/release/final + variants of those), and navigating the menu isn't ideal.

I'd also like a way to remove the default ones from the list (e.g. I don't need a haskell build system in the list if I am working in a C++ project).
emonkey
 
Posts: 5
Joined: Thu Nov 14, 2013 7:00 pm

Re: Fast switching of build systems

Postby emonkey on Wed Nov 27, 2013 3:37 pm

I have since found a plugin that mostly does this, called "Build Switcher".

It is limited by a few things however:

There is no API support to get the build system list for the plugin to function properly, so you have to manually define the build system names. (at least according to the plugin, has support for that been added since? The plugin doesn't appear in the package settings list so it may be old).

There seems to be a limit of 8 build systems you can assign to a project. More than that does not appear in the build system list and is not switchable. This is unfortunate because I have 20 different build targets I need to switch between. (Developing a C++ application that supports 4 target platforms and debug/release/profiling/final support for each of them).

I've also since discovered that I can delete the sublime-build files to remove the default ones, but you are still restricted to 8 build systems in a project.
emonkey
 
Posts: 5
Joined: Thu Nov 14, 2013 7:00 pm

Re: Fast switching of build systems

Postby Saxi on Thu Nov 28, 2013 2:03 am

I would like this as well, I currently use two different build systems for a few languages. Would be nice to quickly chose which one. Maybe some sort of modifier for command-B to popup window instead.
Saxi
 
Posts: 99
Joined: Mon Nov 19, 2012 1:37 pm

Re: Fast switching of build systems

Postby bizoo on Thu Nov 28, 2013 8:19 am

Why don't you use variants (http://docs.sublimetext.info/en/latest/reference/build_systems.html#variants) and a keybinding for the Command Palette:
Code: Select all
{ "keys": ["ctrl+alt+shift+b"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Build: "} }

Not exactly what I want, but good enough.

I've asked a few things (http://www.sublimetext.com/forum/viewtopic.php?f=4&t=11369) that IMHO make Build system more usable.
But as usual, there was no answer so I suppose my requests are stupids.
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Majestic-12 [Bot] and 11 guests

cron