Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
... ... @@ -1,10 +1,18 @@
1 1 [
2   - {
  2 + {
3 3 "caption": "SublimeREPL: Scala",
4 4 "command": "run_existing_window_command", "args":
5 5 {
6 6 "id": "repl_scala",
7 7 "file": "config/Scala/Main.sublime-menu"
8 8 }
  9 + },
  10 + {
  11 + "caption": "SublimeREPL: SBT for opened folder",
  12 + "command": "run_existing_window_command", "args":
  13 + {
  14 + "id": "repl_sbt",
  15 + "file": "config/Scala/Main.sublime-menu"
  16 + }
9 17 }
10 18 ]
68 config/Scala/Main.sublime-menu
@@ -8,27 +8,53 @@
8 8 "id": "SublimeREPL",
9 9 "children":
10 10 [
11   - {"command": "repl_open",
12   - "caption": "Scala",
13   - "id": "repl_scala",
14   - "mnemonic": "s",
15   - "args": {
16   - "type": "subprocess",
17   - "encoding": "utf8",
18   - "external_id": "scala",
19   - "cmd": {"linux": ["scala"],
20   - "osx": ["scala"],
21   - "windows": ["scala.bat", "-i"]},
22   - "soft_quit": "\nexit\n",
23   - "cwd": "$file_path",
24   - "cmd_postfix": "\n",
25   - "extend_env": {"osx": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
26   - "linux": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
27   - "windows": {"EMACS": "1"}},
28   - "suppress_echo": false,
29   - "syntax": "Packages/Scala/Scala.tmLanguage"
30   - }
31   - }
  11 + {"caption": "Scala",
  12 + "id": "Scala",
  13 +
  14 + "children":[
  15 + {"command": "repl_open",
  16 + "caption": "scala REPL",
  17 + "id": "repl_scala",
  18 + "mnemonic": "s",
  19 + "args": {
  20 + "type": "subprocess",
  21 + "encoding": "utf8",
  22 + "external_id": "scala",
  23 + "cmd": {"linux": ["scala"],
  24 + "osx": ["scala"],
  25 + "windows": ["scala.bat", "-i"]},
  26 + "soft_quit": "\nexit\n",
  27 + "cwd": "$file_path",
  28 + "cmd_postfix": "\n",
  29 + "extend_env": {"osx": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
  30 + "linux": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
  31 + "windows": {"EMACS": "1"}},
  32 + "suppress_echo": false,
  33 + "syntax": "Packages/Scala/Scala.tmLanguage"
  34 + }
  35 + },
  36 + {"command": "repl_open",
  37 + "caption": "SBT for opened folder",
  38 + "id": "repl_sbt",
  39 + "mnemonic": "b",
  40 + "args": {
  41 + "type": "subprocess",
  42 + "encoding": "utf8",
  43 + "external_id": "scala",
  44 + "cmd": {"linux": ["sbt"],
  45 + "osx": ["sbt"],
  46 + "windows": ["sbt"]},
  47 + "soft_quit": "\nexit\n",
  48 + "cwd": "$folder",
  49 + "cmd_postfix": "\n",
  50 + "extend_env": {"osx": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
  51 + "linux": {"EMACS": "1", "PATH": "{PATH}:/usr/local/bin"},
  52 + "windows": {"EMACS": "1"}},
  53 + "suppress_echo": false,
  54 + "syntax": "Packages/Scala/Scala.tmLanguage"
  55 + }
  56 + }
  57 + ]}
32 58 ]
33 59 }]
34 60 }

0 comments on commit 77840a1

Please sign in to comment.
Something went wrong with that request. Please try again.