SublimeSBT
SublimeSBT copied to clipboard
extra commands
it would be useful to have a dict of commands:
{
"run": "run",
"continuous run": "~run",
"test": "test",
"continuous test": "~test",
"custom task": "..."
}
You can already do this by adding a Default.sublime-commands
file to your User
package directory:
[
{ "caption": "SBT: run", "command": "sbt", "args": {"command": "run"} },
{ "caption": "SBT: continuous run", "command": "sbt", "args": {"command": "~ run"} }
]
I think "continuous run" should be included by default. I use it 99.5% of the time i develop in scala.
Can you add something more generic like an input box to ask what sbt task to run ? (Similar to the input box from testing only)
@MasseGuillaume you can just enter the task to run at the sbt prompt. Help me understand what the input box would provide.
This is what I have in my sublime sbt preference. I update the run_command all the time and they are not limited to the 5 commands here.
{
"run_command1": "~ReadWrite/test:compile",
"run_command2": "~ReadWrite/it:test",
"run_command3": "~testBench/compile",
"run_command4": "~DashboardJVM/reStart",
"run_command": "~PipelineTest/test"
}
Have you tried the history support? Not only can you easily recall and edit commands that you've typed in, but you can also specify commands that are pre-loaded into the history either globally or on a per-project basis.