Switching off particular shortcuts

52 views
Skip to first unread message

Ben Dunkley

unread,
Jan 26, 2022, 6:40:03 AM1/26/22
to iterm2-discuss
I'm having some difficulty with clashing shortcuts. 

 - Shift-cmd-left or shift-cmd-right cycle through open tabs. I use this a lot. However, if anything is selected in a tab, these shortcuts modify the start or end of the selection. How do I switch off that behaviour so I can always cycle through tabs?

 - I'm on an ultra-wide monitor so my quake-style shell window needs to be narrower than the screen. If I accidentally tap 0 while trying to change tab (it's very close to the arrow keys) then the pane goes full-screen. Tapping it again makes it full width and I can't find a way to undo that without closing and re-opening the app. How do I switch off that shortcut?

Ben Dunkley

unread,
Jan 27, 2022, 5:20:19 AM1/27/22
to iterm2-discuss
I really hope somebody can give me a steer on this! I can't find the shortcuts in question in the settings, or as part of the menu options. I've used iTerm for years, but it's only on more recent OSX installs that it's caused this clashing shortcut behaviour. I really don't want to have to look for another solution, but these two are surprisingly frustrating and do the opposite of keeping me in a workflow state.

To be clear:

I want to disable "shift-alt-0" (swaps the pane to full-screen and back.)
I want to disable "shift-alt-left" and "shift-alt-right" (if a selection exists, it moves the end of the selection to the start or end of the line, and displays a cursor, which remains until I tap 'escape')

Any help would be greatly appreciated.

Richard Mitchell

unread,
Jan 27, 2022, 8:48:38 AM1/27/22
to iterm2-discuss
I just use CMD-left and CMD-right arrow to cycle through open tabs (no shift)  and doesn't seem to replicate the issue you're having - which I CAN replicate if I use shift.

I've looked to see if I've created a custom keyboard shortcut, but can't find one in either Apple's preferences or BTT.

Richard Mitchell

unread,
Jan 27, 2022, 8:54:48 AM1/27/22
to iterm2-discuss
You can use System Preferences -> Keyboard -> Shortcuts -> App Shortcuts
and add new entry for iTerm2 to use something you're likely to never hit.
I replaced it with Shift-Control->Option->Command-0 which replaced the previous shortcut.

Adrian Bool

unread,
Jan 29, 2022, 5:46:37 AM1/29/22
to iterm2-...@googlegroups.com
Hi Ben,

On your first point...

I've always used Shift-Cmd [ and ] to move between tabs in iTerm.  This combination doesn't have the bad interaction with selected text. It is also the same shortcut used in Safari and Finder.  (It is also the shortcut shown in iTerm's menu for PreviousNext tab,)

Note, this is on a British keyboard — may be slightly different for you.

Kind regards

aid



--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/eaa2af2b-535c-4aff-b246-c11ac822a4e1n%40googlegroups.com.

George Nachman

unread,
Feb 3, 2022, 8:31:53 PM2/3/22
to iterm2-...@googlegroups.com
On Jan 26, 2022 at 3:40:02 AM, Ben Dunkley <b...@chemica.co.uk> wrote:
I'm having some difficulty with clashing shortcuts. 

 - Shift-cmd-left or shift-cmd-right cycle through open tabs. I use this a lot. However, if anything is selected in a tab, these shortcuts modify the start or end of the selection. How do I switch off that behaviour so I can always cycle through tabs?

Prefs > General > Selection > Automatically enter copy mode on Shift+Arrow key with selection

 - I'm on an ultra-wide monitor so my quake-style shell window needs to be narrower than the screen. If I accidentally tap 0 while trying to change tab (it's very close to the arrow keys) then the pane goes full-screen. Tapping it again makes it full width and I can't find a way to undo that without closing and re-opening the app. How do I switch off that shortcut?

You can bind any keystroke to the “Ignore” action in Prefs > Keys> Key Bindings.

Robert Whelton

unread,
Oct 24, 2023, 11:24:29 AM10/24/23
to iterm2-discuss
This trick was a little challenging to find. The new command+return  feature that switches to full-screen conflicts with Little Snitch alerts. I used this trick to disable that. It would be nice if there were a nice, obvious setting to disable it. I could not find any such setting, having searched and visually combed through all settings.

Thank you,
Robert
Reply all
Reply to author
Forward
0 new messages