dpo / atom-python-debugger

IDE-like Python debugger for Atom
MIT License
42 stars 13 forks source link

Limit keymap to python only. #10

Closed zhaocai closed 7 years ago

zhaocai commented 8 years ago

I think the keymap should be something like this:

'atom-text-editor[data-grammar~="python"]':
  "ctrl-f9": "python-debugger:toggle"
  "f9": "python-debugger:breakpoint"

In addition, is it doable to dynamically add and remove keymaps (like f11 for step, etc.) when python-debugger is toggled.

dpo commented 7 years ago

You can disable the default keybindings in the package settings and define your own in your keymap.cson. I'll look into enabling/disabling the keymaps as my time allows, but a pull request would be welcome.