MiplehCode
MiplehCode

Reputation: 11

How do I keybind SublimeREPL to run Haskell interpeter?

I've been searching for the right command name to keybind to run Haskell Interpeter in Sublime 3. I'm trying to add to the Sublime key bindings - user and the code should look something like this:

{ "keys": ["alt+keypad2"], "command": "run_existing_window_command", "args":
    {
        "id": "repl_haskell_run",
        "file": "config/Python/Main.sublime-menu"
    }
},

The following line is wrong, I made it up and I need to find the right command to put there:

"id": "repl_haskell_run",
"file": "config/Python/Main.sublime-menu"

Upvotes: 0

Views: 459

Answers (1)

Alec
Alec

Reputation: 32309

I think the following does what you are looking for. I found the command by looking for a .sublime-menu file in the Haskell folder of the SublimeREPL repo: config/Haskell/Default.sublime-commands. (One such file had to exist for you to be able to do ctrl + shift + p -> SublimeREPL: Haskell.)

[
    { "keys": ["alt+keypad2"],
      "command": "run_existing_window_command",
      "args": { "id": "repl_haskell", "file": "config/Haskell/Main.sublime-menu" } },
]

Upvotes: 2

Related Questions