Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMulti-line editing (functions, classes) #111
Closed
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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.