export complete os/x keymap in xml to programmatically modify, then import

已回答

I just posted this on stackoverflow at https://stackoverflow.com/questions/45312494/pycharm-export-complete-key-map-file-as-xml

 

I would like to programmatically create a keymap for pycharm. I have an ergonomic keyboard for which the function keys are very awkward to hit. I'd like to map everything with a function key to something with a prefix, so for example, (I'm on mac os/x)

Command + Alt + F7 

will go to

Alt + J
Command + Alt + 7

That is I'll use Alt+J as the gateway into my remaps for function keys.

I can do this on an action by action basis, and I've found a xml file at

~/Library/Preferences/PyCharm<xx>/keymaps/

but it seems to only have my new keymappings. It would be great if I could export an xml file with all the keymappings, and then create my alternative mapping from it. Anyone know how to get a hold of such a complete xml file of the standard keymap?

0

Hi Anna,

Do you have one for pycharm as opposed to intellij? I started to look at that but it is missing, for instance, Alt + F12 to bring up a terminal window.

0

Pycharm is IDE based on IntelliJ platform so it's a relevant link.

> I started to look at that but it is missing, for instance, Alt + F12 to bring up a terminal window.

From $default.xml:
<action id="ActivateTerminalToolWindow">
  <keyboard-shortcut first-keystroke="alt F12"/>
</action>

 

0

That's an old thread, but I have faced the same question and come up with the simple plugin, it just exports entire keymap to IntelliJ XML format: https://plugins.jetbrains.com/plugin/18927-keymap-xml-exporter
Hope it helps someone

0

请先登录再写评论。