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 Suggestion: iTerm support (display images inline and open other files) #51

Closed
yschimke opened this issue Nov 4, 2017 · 4 comments

Comments

@yschimke
Copy link

yschimke commented Nov 4, 2017

Feel free to steal code from

https://github.com/yschimke/oksocial-output/blob/master/src/main/java/com/baulsupp/oksocial/output/iterm/ItermOutputHandler.kt
https://github.com/yschimke/oksocial-output/blob/master/src/main/java/com/baulsupp/oksocial/output/OsxOutputHandler.kt

Features

  • show previews inline
  • open other files in preview etc

image

@holgerbrandl
Copy link
Collaborator

kscript is not a REPL/interactive shell but a rather a script interpreter, so how/where would this fit it?

Even so, this looks interesting. Is it possible to similar image inlining in the regular macos terminal as well? Is it feasible to do something similar under linux (e.g. ubuntu)?

@yschimke
Copy link
Author

yschimke commented Nov 4, 2017

I'm not using it as a repl. I'm moving some examples I wrote in Java/jjs to kscript

e.g. https://twitter.com/yschimke/status/858345997822513158

image

@holgerbrandl
Copy link
Collaborator

I see, nice idea. Shouldn't this work already if you declare the oksocial library as a script dependency?

@yschimke
Copy link
Author

yschimke commented Nov 4, 2017

Yep, that's why I put it as "Feature Suggestion", feel free to close.

I think it's a useful feature for kscript to support opening media in the best platform supported method available. This might be inline for iTerm, or on linux calling gnome-open or similar.

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