Improving iTerm keyboard shortcuts

iTerm is a cool terminal replacement for OS X (tabs, bookmarks, and profiles off the top of my head); I’m still using Tiger, I think Leopard’s terminal app has been improved, but I’m not sure how it matches up to iTerm.

I like to use Command (Apple key) + left and Command + right to skip to the beginning and end of lines respectively, unfortunately iTerm doesn’t understand these shortcuts out of the box (although you can use Function + left and right). To enable this:

  1. Open iTerm
  2. Bookmarks menu > Manage profiles
  3. Keyboard profiles > Global
  4. Click +
  5. Key: cursor left, Modifier: Command, Action: send escape sequence “OH”
  6. Click “High interception priority” and then OK
  7. Click +
  8. Key: cursor right, Modifier: Command, Action: send escape sequence “OF”
  9. Click “High interception priority” and then OK

You can also set up Alt + left and Alt + right to navigate between whole words, the commands are:

  • Key: cursor left, Modifier: Option, Action: send escape sequence “f”
  • Key: cursor right, Modifier: Option, Action: send escape sequence “b”

No comments yet. Be the first.

Leave a reply