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 editing like ruby's REPL irb? #56

Open
glyh opened this issue Jan 14, 2022 · 0 comments
Open

Multiline editing like ruby's REPL irb? #56

glyh opened this issue Jan 14, 2022 · 0 comments

Comments

@glyh
Copy link

glyh commented Jan 14, 2022

Basically, when the current form is not complete, user can always choose to delete them all.

Here's a video for demonstration:
asciicast

digikar99 added a commit to lisp-maintainers/cl-repl that referenced this issue Jul 18, 2023
…iro#56)

This commit includes a number of inter-related changes:

- A history file is introduced that stores entries in a string-by-string manner,
similar to SLIME. This easily takes care of inputs containing multiple lines.
- To be able to edit a multiline input, the #\newline and #\return signals are
mapped to MAY-BE-INSERT-NEWLINE, which either inserts a newline character, or
completes the command using rl_newline.
- For correct keyboard navigation in the presence of color codes, prompt ignore
codes defined by libreadline are used.
- Some common keys are bound to commands for visiting previous/next line, and
for previous/next input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant