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

Multiline paste in REPL #450

Open
asampal opened this issue Mar 4, 2022 · 9 comments
Open

Multiline paste in REPL #450

asampal opened this issue Mar 4, 2022 · 9 comments
Assignees
Labels
critical Critical, top-priority issues enhancement New feature or request repl Issues related to the REPL

Comments

@asampal
Copy link

asampal commented Mar 4, 2022

Allowing for multi-line text to be pasted into the REPL would be much appreciated.

@asampal asampal added the enhancement New feature or request label Mar 4, 2022
@asampal
Copy link
Author

asampal commented Mar 4, 2022

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?

@drkameleon
Copy link
Collaborator

drkameleon commented Mar 5, 2022

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.

@drkameleon drkameleon added the repl Issues related to the REPL label Mar 5, 2022
@drkameleon
Copy link
Collaborator

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...

@asampal
Copy link
Author

asampal commented Mar 5, 2022

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.

@drkameleon
Copy link
Collaborator

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...

@stale
Copy link

stale bot commented Oct 31, 2022

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.

@stale stale bot added the stale label Oct 31, 2022
@drkameleon drkameleon added the critical Critical, top-priority issues label Dec 31, 2022
@stale stale bot removed the stale label Dec 31, 2022
@stale
Copy link

stale bot commented Aug 29, 2023

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.

@stale stale bot added the stale label Aug 29, 2023
Copy link

stale bot commented Dec 28, 2023

Closing issue as stale.

@stale stale bot closed this as completed Dec 28, 2023
@RickBarretto RickBarretto reopened this Jan 6, 2025
@stale stale bot removed the stale label Jan 6, 2025
@RickBarretto
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical Critical, top-priority issues enhancement New feature or request repl Issues related to the REPL
Projects
None yet
Development

No branches or pull requests

3 participants