Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In my case, iTerm2 can do more sophisticated keyboard remapping than the standard terminal. Specifically: I have Caps Lock globally remapped to Command. Except, in iTerm, it acts as Control. Except, if I'm using some specific combos, like Cmd-Tab or Cmd-`; then it acts as Command again.


Oh wow, great idea! Now that I'm working more often with linux, I kinda got Caps+C etc. in my muscle memory, because I set Caps as Ctrl. When I switch back to macOS, it takes a while of wondering why my shortcuts won't work. Care to explain how exactly you set this up? I guess in System Preferences -> Keyboard you set Caps to Cmd. And then?


In iTerm Preferences, Keys, set Left Command to Control, then in the Key Mappings list, add each Cmd-xyz combo you want to preserve, and set its action to "Do Not Remap Modifiers".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: