[IPython-dev] Emacs/Vim keybindings in the notebook

Fernando Perez fperez.net at gmail.com
Thu Jan 26 15:53:14 EST 2012

On Thu, Jan 26, 2012 at 12:45 PM, Aaron Meurer <asmeurer at gmail.com> wrote:
> I found a bug: C-k doesn't put the
> deleted text into the kill ring (so C-y won't give it back).  It does
> work for C-w.
> I should also note that in Mac OS X, many emacs bindings work by
> default in any Cocoa text box.  Among these are C-a, C-e, C-n, C-p,
> C-f, C-b, C-k, and C-y.  So it's not 100% clear which ones were
> implemented by you and which came from the OS.

Yes, C-k is coming from the OS and not from this code, which is why
C-y doesn't work.  It was the first thing that bugged me :)  The emacs
code is tiny:


so it looks pretty easy to improve it to do some of the main ones
correctly.  Comparing that with the vim.js:


makes me suspect the author is mainly a Vim user.

But that's no problem, we can always improve that code ourselves, and
send the fixes back upstream.



More information about the IPython-dev mailing list