Key logger / Keybindings troubleshooter #1952
Spitfire1900
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
💡
Emulate the Keyboard Shortcuts Troubleshooting feature from VSCode
Add a LOGGER, e.g.
prompt_toolkit.bindings_resolver
: logs attempted keybinding resolutions and matched resolutions.prompt_toolkit.call_handler
logs handlers immediately before calling them.This would listen for ENV vars, e.g.
PTK_BINDINGS_RESOLVER_LOG
andPTK_CALL_HANDLER_LOG
for where to log the file, and optionally alsoPTK_LOGCONF
, which would point to a validlogging.cnf
file with advanced configuration.Two PoC sample diffs
Resolver logger:
Call handler logger:
Beta Was this translation helpful? Give feedback.
All reactions