Thursday, October 26, 2023

Bookmark: How to set iTerm2/3 tabbing behavior to sequential order rather than recency

 Background:

iTerm2/3 has built-in functionality to switch between tabs between the most recently used one.  

Problem:

If you're used to changing tabs similar to how Chrome, Edge, and Firefox behave, this can be a frustrating experience in context switching how to move between tabs when working in iTerm in a multiple-tabbed session. 

Solution:

So, if you're not used to this behavior (i.e. you prefer incrementally switching tabs to the right via Ctrl-Tab or to the left via Ctrl-Shift-Tab), this can be remapped within the iTerm profile keyboard settings, to replace the internal intepretation of Ctrl-Tab to Next Tab and Ctrl-Shift-Tab to Previous Tab.


References:

Additional details available here including the original bug filed as well as a more-detailed steps in their solution:
https://gitlab.com/gnachman/iterm2/-/issues/8219