pythonsublimetext3sublimerepl

Sublime Text 3, REPL. How to build script in single tab or same REPL window?


I'll get to the point. I've installed SublimeText 3 and i also installed SublimeREPL through Package Control, and I've basically set it up as I need it.

The main thing that is annoying me, is that each time I build a python script (CTRL+B), another REPL file/tab opens, despite the fact that I've already have one open.

Screenshot of sublimeREPL build tab

enter image description here

Is there an approach to configure to open and build in single tab?

Thanks in advance


Solution

  • Add the following line in the "repl_python_run" command in SublimeREPL\config\Python\Main.sublime-menu, right before the "external_id": "python" argument: "view_id": "*REPL* [python]", and then to change the line:

    if view.id() == view_id
    

    into:

    if view.name() == view_id
    

    in SublimeREPL\sublimerepl.py.