Feature request: import and export key mappings
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.0.10
- OS version: 10.12.1 (irrelevant)
Detailed steps to reproduce the problem:
- have two or more Macs: One runs linux, more run osx
- configure linux to treat cmd as ctrl
- configure iterm with the attached key mappings
- save the key mappings to distribute settings on all other macs
What happened:
key mappings cannot be exported key mappings have to be entered manually
What should have happened:
- a preset CMD=CTRL should be available (CMD+a sends hex 0x1)
- a preset CTRL=CTRL should be available (Ctrl+a sends hex 0x1)
- the mapping created should be exportable
Context: as a developer I switch between OS X and linux several times a hour to use tmux, midnightcommander and other shell tools, including remote. As SO suggested it is not possible to create the linux experience on OS X so I modified the OS X experience to almost match linux so switching devices is not too confusing. The main change in linux is to exchange cmd/ctrl, then it almost feels like cmd+c everywhere, but in OS X this is troublesome as cmd and ctrl are actually different things here. The option to change modifier keys will break other behaviors (cmd+alt+left/right to switch desktops). For the last year the mapping described in the image (plus cmd+u = 0x15) makes the switches less painful. Thank you for implementing the possibility at all.
My bug report may be fixed in two ways: a: allow to export the settings (so setting up a new Mac or user on OS X host does not take too long) b: provide a preset for the keys that uses the described mappings
Thank you for your hard work creating a very usable terminal on OS X!
This are the preferences I use as reference every time I setup a new user.