Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added command for opening SBT REPL in currently opened folder

  • Loading branch information...
commit 77840a1847700061d74b5af3be16fff2a549f490 1 parent 2541a81
Alexey Alekhin laughedelic authored
10 config/Scala/Default.sublime-commands
View
@@ -1,10 +1,18 @@
[
- {
+ {
"caption": "SublimeREPL: Scala",
"command": "run_existing_window_command", "args":
{
"id": "repl_scala",
"file": "config/Scala/Main.sublime-menu"
}
+ },
+ {
+ "caption": "SublimeREPL: SBT for opened folder",
+ "command": "run_existing_window_command", "args":
+ {
+ "id": "repl_sbt",
+ "file": "config/Scala/Main.sublime-menu"
+ }
}
]
68 config/Scala/Main.sublime-menu
View
@@ -8,27 +8,53 @@
"id": "SublimeREPL",
"children":
[
- {"command": "repl_open",
- "caption": "Scala",
- "id": "repl_scala",
- "mnemonic": "s",
- "args": {
- "type": "subprocess",
- "encoding": "utf8",
- "external_id": "scala",
- "cmd": {"linux": ["scala"],
- "osx": ["scala"],
- "windows": ["scala.bat", "-i"]},
- "soft_quit": "\nexit\n",
- "cwd": "$file_path",
- "cmd_postfix": "\n",
- "extend_env": {"osx": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
- "linux": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
- "windows": {"EMACS": "1"}},
- "suppress_echo": false,
- "syntax": "Packages/Scala/Scala.tmLanguage"
- }
- }
+ {"caption": "Scala",
+ "id": "Scala",
+
+ "children":[
+ {"command": "repl_open",
+ "caption": "scala REPL",
+ "id": "repl_scala",
+ "mnemonic": "s",
+ "args": {
+ "type": "subprocess",
+ "encoding": "utf8",
+ "external_id": "scala",
+ "cmd": {"linux": ["scala"],
+ "osx": ["scala"],
+ "windows": ["scala.bat", "-i"]},
+ "soft_quit": "\nexit\n",
+ "cwd": "$file_path",
+ "cmd_postfix": "\n",
+ "extend_env": {"osx": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
+ "linux": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
+ "windows": {"EMACS": "1"}},
+ "suppress_echo": false,
+ "syntax": "Packages/Scala/Scala.tmLanguage"
+ }
+ },
+ {"command": "repl_open",
+ "caption": "SBT for opened folder",
+ "id": "repl_sbt",
+ "mnemonic": "b",
+ "args": {
+ "type": "subprocess",
+ "encoding": "utf8",
+ "external_id": "scala",
+ "cmd": {"linux": ["sbt"],
+ "osx": ["sbt"],
+ "windows": ["sbt"]},
+ "soft_quit": "\nexit\n",
+ "cwd": "$folder",
+ "cmd_postfix": "\n",
+ "extend_env": {"osx": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
+ "linux": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
+ "windows": {"EMACS": "1"}},
+ "suppress_echo": false,
+ "syntax": "Packages/Scala/Scala.tmLanguage"
+ }
+ }
+ ]}
]
}]
}
Please sign in to comment.
Something went wrong with that request. Please try again.