Sublime Forum

Redirect the sublime.active_window().run_command("exec"

#1

Hi,
I am new there and I did not find the topic which answer to this problem !
I am relatively new to the ST3 plugin development.
I have succeeded to run a C++ program that I collaboratively develop in the exec window thank to the command :

  sublime.active_window().run_command("exec", {cmd:'prog', 'naca12.py'], env: {...}}))

But I would like to the ouput of my program is redirected to a new ST3 window which be read only.

I have any idea how to do that !
Any help ?

0 Likes

#2

I think a good answer of what I want to do can be found in this post https://forum.sublimetext.com/t/file-change-detection/21/1 where the solution is http://stackoverflow.com/questions/30443820/insert-text-into-view-in-sublime-3-api/30968354.

I wonder where can the documentation of all available function and thier arguments in SBT3 can be found ?

0 Likes

#3

packagecontrol.io/packages/Commando

0 Likes

#4

Very nice package, didn’t know about it.

0 Likes