In iTerm2 map the left Command key to the left Control key & map Command+Tab

itermkeybindingsterminal

In iTerm2, can I map the left ⌘ Command key to the left ^ Control
key and still map the system ⌘ Command ⇨Tab to still switch to all other windows?

I've use three different OS's (Ubuntu, macOS and Windows) regular and my subconscious is constantly wanting to switch windows using ⌥ Option⇨Tab.

Best Answer

While not answering the question I have discovered the following work around in the meantime for my most commonly used terminal "control+" inputs:

  • Ctrl+C - clear terminal line
  • Ctrl+R - reverse search

Set the remap modifiers in iTerm to default:

Remap modifiers in iTerm

Set the keybindings for Command+R, etc. to "Send Hex codes:" and enter the hex codes from http://ascii-table.com/control-chars.php as follows:

enter image description here

And viola it works for Command+R = Ctrl+R as required....to do the entire alphabet would require mapping multiple hex codes