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

Missing emacs-like key-bindings (available in readline) #8447

Closed
7 tasks done
rfourquet opened this issue Sep 23, 2014 · 3 comments
Closed
7 tasks done

Missing emacs-like key-bindings (available in readline) #8447

rfourquet opened this issue Sep 23, 2014 · 3 comments
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@rfourquet
Copy link
Member

rfourquet commented Sep 23, 2014

@mbauman
Copy link
Sponsor Member

mbauman commented Sep 23, 2014

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:

kill_buffer::ByteString

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.

@rfourquet
Copy link
Member Author

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.

@kmsquire kmsquire added the stdlib:REPL Julia's REPL (Read Eval Print Loop) label Sep 23, 2014
srp added a commit to srp/julia that referenced this issue Jan 4, 2015
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.
srp added a commit to srp/julia that referenced this issue Jan 5, 2015
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.
srp added a commit to srp/julia that referenced this issue Jan 5, 2015
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.
srp added a commit to srp/julia that referenced this issue Jan 15, 2015
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.
srp added a commit to srp/julia that referenced this issue Jul 22, 2017
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.
rfourquet pushed a commit that referenced this issue Aug 7, 2017
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.
rfourquet added a commit that referenced this issue Aug 21, 2017
rfourquet added a commit that referenced this issue Aug 21, 2017
rfourquet added a commit that referenced this issue Aug 21, 2017
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".
rfourquet added a commit that referenced this issue Aug 21, 2017
rfourquet added a commit that referenced this issue Aug 21, 2017
rfourquet added a commit that referenced this issue Aug 21, 2017
rfourquet added a commit that referenced this issue Aug 24, 2017
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".
rfourquet added a commit that referenced this issue Aug 24, 2017
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".
rfourquet added a commit that referenced this issue Sep 3, 2017
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".
rfourquet pushed a commit that referenced this issue Sep 3, 2017
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.
rfourquet pushed a commit that referenced this issue Sep 3, 2017
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.
rfourquet pushed a commit that referenced this issue Sep 5, 2017
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.
rfourquet added a commit that referenced this issue Sep 5, 2017
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.
rfourquet added a commit that referenced this issue Sep 7, 2017
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.
rfourquet added a commit that referenced this issue Sep 8, 2017
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.
@rfourquet
Copy link
Member Author

Can finally be closed after 5 years :)
Of course, this doesn't mean that no more improvements are planned ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

3 participants