Skip to content

Multi-line editing (functions, classes) #111

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

Closed
ikanobori opened this issue Jul 4, 2014 · 1 comment
Closed

Multi-line editing (functions, classes) #111

ikanobori opened this issue Jul 4, 2014 · 1 comment

Comments

@ikanobori
Copy link
Contributor

It'd be nice if you could edit entire functions or classes without going line by line. Basically treat any multi-line input as a single entry in the history (like in bash), and have also add a mode where you can edit the multi-line text, using arrow keys to move around within the multi-line text.

So if I had something like

#!python
>>> def func():
...     do_stuff()
...     print x
>>>
>>> (press up arrow once)
>>> def func():
...    do_stuff()
...    print x

And then you'd hit some key combo to go into "edit" mode, which would let you edit any line of the function using the arrow keys to move around like in a regular text editor. Hitting enter in the middle of a function would add additional lines; hitting enter at the end would behave the same as normal input. When the prompt is complete, it'd evaluate the entire input.


@ikanobori
Copy link
Contributor Author

Duplicate of #22.


Original Comment By: Andreas Stührk

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

1 participant