tonsky / Clojure-Sublimed

Clojure support for Sublime Text 4
MIT License
371 stars 22 forks source link

Feature request: copy stdout to within Sublime (phantom?) #94

Open eugenesvk opened 1 year ago

eugenesvk commented 1 year ago

In your Readme you mention the issue with stdout

...it doesn’t always work and you have to check two places for output. Moreover, there’s no output panel, so there’s no place to show stdout anyway

And then suggest to check out the 2nd place of outpu - your terminal. Which I did exactly find confusing - seeing only nil in sublime and having to switch to the terminal for the real output

Would it be possible to add an option to show all text within Sublime:?

Then to make it "always work" instead of redirecting stdout to just one place, have it always output to console (so it continues to always work), and then print an extra copy in the 3 places mentioned above? So for shorter prints you'd have the conenience of seeing it all in the same place, but for longer prints you can switch to ST's console or to the terminal

tonsky commented 1 year ago

I might add it at some point. The way I’m solving this problem right now is running REPL process inside Sublime, not in a terminal

eugenesvk commented 1 year ago

Do you run a terminal in an extra Sublime tab like Terminus does or do something else and get output to Sublime's console or ?

tonsky commented 1 year ago

I use this https://github.com/tonsky/Sublime-Executor but build commands would work to. They all output to output panel

eugenesvk commented 1 year ago

Interesting, the build commands start the repl with /path/to/lein with-profile +socket repl, but then how to you exit it without closing Sublime? The panel doesn't seem to accept input

Will use your plugin meanwhile, it has a Cancel command, though requires adding an extra executable file Thanks for the suggestion