pudb icon indicating copy to clipboard operation
pudb copied to clipboard

Custom keyboard shortcuts?

Open alok opened this issue 6 years ago • 3 comments

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

alok avatar Apr 11 '18 21:04 alok

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

inducer avatar Apr 11 '18 22:04 inducer

Where is the relevant code in the source?

alok avatar Apr 11 '18 22:04 alok

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.).

asmeurer avatar Apr 11 '18 22:04 asmeurer