Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eugenesvk opened this issue Mar 20, 2023 · 4 comments
Open

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

eugenesvk opened this issue Mar 20, 2023 · 4 comments

Comments

@eugenesvk
Copy link

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

@tonsky
Copy link
Owner

tonsky commented Mar 20, 2023

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
Copy link
Author

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
Copy link
Owner

tonsky commented Mar 20, 2023

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

@eugenesvk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants