prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.23k stars 715 forks source link

Method to switch between vi and emacs keybinds in session #38

Closed erikcw closed 9 years ago

erikcw commented 9 years ago

It would be useful to be able to switch between vi and emacs keybindings without having to restart the session.

jonathanslenders commented 9 years ago

Thanks for the feature request, @erikcw! This was actually already on my todo list.

The idea I'm working on consists of several parts:

This would result in a lot more flexibility:

Obviously this will take some more time, but we will get there eventually. :)

jonathanslenders commented 9 years ago

Hi @erikcw This has been implemented recently. You can find it on the master branch. (It's not yet on Pypi, but following release should include it.) Have a good day!