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

Add key binding configuration #202

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

mikemorain
Copy link

Adding enhancement requested in issue #196

This pull request adds a section in the configuration file to allow using prompt toolkit key names to configure the key bindings. I've also updated the tests, and added a default configuration as well.

I think this likely would also address #198, as it would be configurable.

Due to the limitations imposed by the way key bindings are registered in prompt-toolkit 1.0.15, it's necessary to grab the attributes from the centralized Keys collection by name. Until upgrading to version 2.0.0 or higher, this is the best way to register these events.

TODO: Update the test names and configurations.
…le. This was added specifically for the case of upgrading, since the user might have a file without this section in their home directory. In newly-installed cases, we could include the keys in the config file by default.

TODO: Update the test names and configurations.
Fixed a file close warning in 'test_utils.py'
@joguSD joguSD self-assigned this Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants