-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Multiline paste in REPL #450
Comments
Could this be accomplished simply by appending an extra space to each line but the last (to the text being pasted) in order to take advantage of the multi-line support already existing in the REPL? |
That's a very interesting suggestion. 😉 I guess it should be possible, provided that I can think of a way to "intercept" the paste events.... Hmm... Hadn't thought about this at all, but it's definitely worth a try. And yes, probably it could work as you suggest: by "adding" the necessary trailing spaces. But still, that means we have to... intervene before the actual pasting occurs. |
Btw, a bit unrelated but: playing a bit with Windows and seeing how things work in general, I don't know if it's a good idea, but I've been thinking whether it would be practical to have some minimal GUI-based terminal app, especially for Windows. Basically, given the progress that has already been made (with Webviews, UI, etc), making something that works pretty much along the lines of the Online REPL but in a window - I don't think it would take too long to develop. Hmm... |
It might be worth taking a look at Julia's REPL, https://docs.julialang.org/en/v1/stdlib/REPL, to see how it handles things. Among other nice features, it allows for pasting in code that even includes output, which is filtered out. For more cool REPL feature inspiration, there's the Julia package OhMyREPL, https://kristofferc.github.io/OhMyREPL.jl/latest. Features like those seen in the above, for character-based terminals, would be nice, significantly improving the REPL experience in headless environments. A Webview-based REPL (ultra notebook) would be great too, since that could support inline graphics and interactivity. It might also be possible to extend the Visual Studio Code extension to build on that. |
I've played a bit with Julia and funny thing is I do remember the REPL; so, who knows, I guess subconsciously I must have already been somewhat influenced by it... haha I'll definitely have another look into it. I've just seen OhMyREPL too. I love the idea. I think it's quite obvious already, but I would be more than open to a full-color, syntax-highlighted version of Arturo's REPL. Now, I can only hope it's not going to be too challenging to implement... Let's see... I'm always open for interesting, food-for-thought ideas! 😉 P.S. In the meantime, I've spent all morning (GMT+1 here) trying to re-enable GMP for the Windows builds (+ without messing with MSVC at all); at least, it seems to be working... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing issue as stale. |
|
Allowing for multi-line text to be pasted into the REPL would be much appreciated.
The text was updated successfully, but these errors were encountered: