SublimeSBT icon indicating copy to clipboard operation
SublimeSBT copied to clipboard

extra commands

Open MasseGuillaume opened this issue 10 years ago • 6 comments

it would be useful to have a dict of commands:

{
   "run": "run",
   "continuous run": "~run",
   "test": "test",
   "continuous test": "~test",
   "custom task": "..."
}

MasseGuillaume avatar Feb 05 '15 19:02 MasseGuillaume

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"} }
]

jarhart avatar Mar 13 '15 22:03 jarhart

I think "continuous run" should be included by default. I use it 99.5% of the time i develop in scala.

nemoo avatar Mar 17 '15 20:03 nemoo

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 avatar May 08 '15 13:05 MasseGuillaume

@MasseGuillaume you can just enter the task to run at the sbt prompt. Help me understand what the input box would provide.

jarhart avatar May 08 '15 18:05 jarhart

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"
}

MasseGuillaume avatar May 08 '15 18:05 MasseGuillaume

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.

inkytonik avatar May 08 '15 23:05 inkytonik