Clojure-Sublimed icon indicating copy to clipboard operation
Clojure-Sublimed copied to clipboard

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

Open eugenesvk opened this issue 2 years ago • 4 comments

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:?

  • maybe print it all in Sublime's console? Can it be used as the output panel?
  • maybe print it in the same phantoms you use for Symbol Info?
  • maybe print it in the same phantoms you use for the right-hand side results?
  • a configurable mix of all 3?

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

eugenesvk avatar Mar 20 '23 07:03 eugenesvk

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

tonsky avatar Mar 20 '23 12:03 tonsky

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 ?

eugenesvk avatar Mar 20 '23 12:03 eugenesvk

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

tonsky avatar Mar 20 '23 19:03 tonsky

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

eugenesvk avatar Apr 01 '23 08:04 eugenesvk