-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Missing emacs-like key-bindings (available in readline) #8447
Comments
When I implemented the kill buffer, I had a kill ring in mind. But I don't really use kill rings much in emacs, so I just did the basic version. But it wouldn't be hard to change it to be a stack instead of a single string. See: Line 23 in 13c6917
So the first two bullets should be very simple to implement. And the third is just a matter of adding the methods. I think points four and five will be much more challenging, as they require more state. |
Thanks @mbauman for your insight, it will help get started. I very often use the kill ring in terminal repl apps (and emacs), and also word transposition which I forgot to add to the list. |
The REPL now supports undo via Ctrl-^ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-^ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-^ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-^ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-^ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-/ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
After a yank ("^Y"), it's possible to "yank-pop" with the "M-y" binding, which replaces the just-yanked text with an older entry from the "kill-ring".
After a yank ("^Y"), it's possible to "yank-pop" with the "M-y" binding, which replaces the just-yanked text with an older entry from the "kill-ring".
After a yank ("^Y"), it's possible to "yank-pop" with the "M-y" binding, which replaces the just-yanked text with an older entry from the "kill-ring".
After a yank ("^Y"), it's possible to "yank-pop" with the "M-y" binding, which replaces the just-yanked text with an older entry from the "kill-ring".
The REPL now supports undo via Ctrl-/ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-/ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The REPL now supports undo via Ctrl-/ or Ctrl-_. This should very closely minic the behavior of other readline/emacs shells, except it doesn't let the user goto a historical entry (A), edit it, goto a different historical entry (B), return to the first (A) and undo the edits.
The two ways of deleting the previous word, deleting the next word and clearing the space now hook into the kill ring. Implements item 2 of #8447.
The two ways of deleting the previous word, deleting the next word and clearing the space now hook into the kill ring. Implements item 2 of #8447.
The two ways of deleting the previous word, deleting the next word and clearing the space now hook into the kill ring. Implements item 2 of #8447.
Can finally be closed after 5 years :) |
The text was updated successfully, but these errors were encountered: