inducer / pudb

Full-screen console debugger for Python
https://documen.tician.de/pudb/
Other
2.94k stars 226 forks source link

Custom keyboard shortcuts? #294

Open alok opened 6 years ago

alok commented 6 years ago

Is there a way to configure this or would it have to be built out (happy to hack on it)?

inducer commented 6 years ago

No, there's not currently a way to configure this--but I'd be happy to consider a patch.

alok commented 6 years ago

Where is the relevant code in the source?

asmeurer commented 6 years ago

Right now the keyboard shortcuts are all hardcoded in debugger.py. I would start by extracting them to a single dictionary in a separate file, so that it can easily be overloaded with configuration (similar to how the theming works, except without any notion of inheritance). Every keyboard shortcut will need a name. I would namespace them based on what view they apply to (source view, var view, global, etc.).