diff --git a/config/Octave/Default.sublime-commands b/config/Octave/Default.sublime-commands new file mode 100644 index 00000000..b43e8f9b --- /dev/null +++ b/config/Octave/Default.sublime-commands @@ -0,0 +1,10 @@ +[ + { + "caption": "SublimeREPL: Octave", + "command": "run_existing_window_command", "args": + { + "id": "repl_octave", + "file": "config/Octave/Main.sublime-menu" + } + } +] \ No newline at end of file diff --git a/config/Octave/Main.sublime-menu b/config/Octave/Main.sublime-menu new file mode 100644 index 00000000..ee76e2aa --- /dev/null +++ b/config/Octave/Main.sublime-menu @@ -0,0 +1,27 @@ +[ + { + "id": "tools", + "children": + [{ + "caption": "SublimeREPL", + "mnemonic": "r", + "id": "SublimeREPL", + "children": + [ + {"command": "repl_open", + "caption": "Octave", + "id": "repl_octave", + "mnemonic": "o", + "args": { + "type": "subprocess", + "encoding": "utf8", + "cmd": ["octave", "-i"], + "cwd": "$file_path", + "external_id": "octave", + "syntax": "Packages/Matlab/Matlab.tmLanguage" + } + } + ] + }] + } +]