Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch tabs in iTerm2 on a Mac using SHIFT-arrow keys, not CTRL-arrow keys

Pretty much what the title says...

My work flow in iTerm2 (just upgraded to 3.4.10 to see if that fixed the problem; no, it did not) let me hit Shift-Left Arrow to move to the previous tab and Shift-Right Arrow to switch to the next tab.

That recently stopped working and I can't get it back. ;-( I must now use Ctrl-arrow keys which is not ergonomic by any reach.

I have changed the key prefs in Preferences -> Keys and in individual profiles. I have restarted iTerm2 after doing so. I've made no changes to the OS (.inputrc, etc.)

As I said, this was part of my workflow and now it isn't.

N.B. I do NOT want to highlight a previous/next word; I do NOT want to edit in Vim/Emacs; I do NOT want to move tabs around via keyboard...

I want to switch between iTerm2 tabs using Shift-arrow keys.

Anyone know the secret?

like image 279
faberfedor Avatar asked Jan 23 '26 07:01

faberfedor


1 Answers

In iTerm2, go Preferences/Keys/Key Bindings (in newer versions this may be under Settings/Keys/Key Bindings) and remap the bindings for Previous Tab and Next Tab to your liking.

Note: watch out for potential conflicts with existing bindings. If you do get conflict warnings, go Preferences/Profiles/Keys/Key Mappings for each profile and remove the conflicting mapping.

like image 134
David Soroko Avatar answered Jan 26 '26 20:01

David Soroko