0

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"
MiplehCode
  • 11
  • 2
  • What are you trying to do? Load the current file into the SublimeREPL GHCi or just open up a new SublimeREPL GHCi? – Alec Oct 15 '16 at 22:36
  • Open a new SublimeREPL GHCi, same as doing ctrl+shift+p -> SublimeREPL: Haskell – MiplehCode Oct 15 '16 at 22:38

1 Answers1

2

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" } },
]
Alec
  • 31,829
  • 7
  • 67
  • 114