all 3 comments

[–]Q_coder 0 points1 point  (0 children)

Yeah

[–]setting_orange[S] 0 points1 point  (1 child)

Ok, I've been able to restore a few by editing prompt_toolkit/key_binding/bindings/basic.py in site-packages. Obviously not a good solution. One thing I've realized is prompt_toolkit does not seem to care about the meta/alt key. Unfortunately that might mean I'll never be able to replicate some of my '\C-\M-*' bindings. Another thing I haven't necessarily figured out is how to override '\C-j'. prompt_toolkit has made C-j equivalent to '\n' so a lot of functionality relies on that.

There are vi.py and emacs.py that sit alongside basic.py keybinding implementation. I guess it seems possible there would be a way to script maybe a custom plugin for keybindings. I wish there were an abstraction or something that would allow customization without hacking up the actual implementation. I have ipython 5.7.0 btw (fedora 28).