Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 636
Pavan Gopinath Avatar asked Dec 31 '25 10:12

Pavan Gopinath


1 Answers

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.

like image 65
Vibhutha Kumarage Avatar answered Jan 02 '26 23:01

Vibhutha Kumarage



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!