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

Repl history should cycle through top level forms #2007

Open
allison-casey opened this issue Mar 19, 2021 · 2 comments
Open

Repl history should cycle through top level forms #2007

allison-casey opened this issue Mar 19, 2021 · 2 comments

Comments

@allison-casey
Copy link
Contributor

allison-casey commented Mar 19, 2021

It would be nice if HyREPL cycled through entire forms when looking through the history like IPython instead of just by line. It would make working in the repl a much nicer experience. So pressing up in a case like this:

=> (defn test [name]
... (print "Hello" name))
=> 

would get you

=> (defn test [name]
... (print "Hello" name))
=> (defn test [name]
... (print "Hello" name))

and not

=> (defn test [name]
... (print "Hello" name))
=> (defn test [name]
@peaceamongworlds
Copy link
Contributor

The default Python repl seems to do the same thing. Would this not be solved by using the hy repl through something like hy-mode in Emacs, or using a hy kernel for IPython?

@scauligi
Copy link
Member

scauligi commented Mar 19, 2021

Sure, but if we can make our REPL nicer on its own I think that's still worthwhile.

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

No branches or pull requests

3 participants