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/paste of code snippet to/from tryjshell #2

Open
liar666 opened this issue Aug 6, 2018 · 6 comments
Open

Feature request: copy/paste of code snippet to/from tryjshell #2

liar666 opened this issue Aug 6, 2018 · 6 comments

Comments

@liar666
Copy link

liar666 commented Aug 6, 2018

Hi,

Thanks for the tool/website, it's very cool. Particularly for those using JDK8 and not having access to jshell :)

It would be even cooler if we could copy snippets of code to/from the web shell.

@liar666
Copy link
Author

liar666 commented Aug 6, 2018

Also, having a little higher timeout on tryjshell.org would make the site more usable for larger snippets of code, particularly when one cannot not copy/paste and has to re-type everything :{

@rahmanusta
Copy link
Contributor

Hi @liar666, what do you mean about copy/paste snippets?

@liar666
Copy link
Author

liar666 commented Aug 7, 2018

What I mean: I'm working in my favorite Editor/IDE, then discover I have to test a small part of the code (e.g. I don't remember exactly how methodX or methodY is called on a particular object or I want to check if a for loop does not get out of bounds).
What I would like it to be able to copy/paste a snippet of code from my Editor/IDE into the tryjshell.org website, so that I have only a few modifications to do to try it outside my own big&complex code.

@rahmanusta
Copy link
Contributor

You should already be able to paste snippets to tryjshell.org

@OrangeDog
Copy link

You can copy/paste if you use the browser's menu e.g. Edit -> Copy.

However, the keyboard shortcuts Ctrl+C and Ctrl+V do not work, and instead type their control characters.

@rahmanusta
Copy link
Contributor

Ctrl+insert (copy) and Shift+insert (paste) can be used for that xtermjs/xterm.js#185

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

3 participants