You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2010-04-21.20:02:06.154>labels= ['type-feature', 'library']
title='Addition to readline module to get dictionary of keystrokes and commands'updated_at=<Date2012-10-11.20:59:37.980>user='https://github.com/MLModel'
Requesting a function to be added to the readline module that produces a dictionary of the current keystroke bindings Also, one to write it to a file in readline init file format. This would be a big help for people interested in customizing the behavior of readline inside Python.
For debugging issues with readline, it would be be very useful to be able to query the current set of bindings. This would also help people avoid accidentally over-writing existing bindings.
I suggest emulating the three bash commands:
bind -p # List functions and bindings in a form that can be reused as input.
bind -v # As above for variable names and values.
bind -s # As above for macros and values.
Here's what the original maintainer chet romney had to say about this functionality not being a part of readline, and should be implemented by the calling application. From Chet Ramey:
----------
The answer is that this is very similar to the operate-and-get-next
feature bash adds to the readline interface. I am not inclined to add this to
readline in its current form because it manipulates state managed by
the calling application (rl_startup_hook) and requires that state to be
kept between calls to readline(). It's a feature that should be provided
by the calling application -- it's implementation is not complicated.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: