6

I found similar questions but none addresses the problem:

In gnome-terminal, I would like to change my shortcut to change tabs:

  • Switch to Previous Tab: Ctrl+Shift+Tab
  • Switch to Next Tab: Ctrl+Tab

Just like in every browser. However, if I try to set these options, gnome-terminal just returns an error sounds and it doesn't work. It seems like the tab key is messing things up, because every assignment that does not involve the tab key works fine.

Does anyone have a solution?

2 Answers 2

6

Apparently, the Preferences dialog does not allow you to set these keybindings indeed. However, it will work if you directly change the setting using the terminal, as in:

gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Control>Tab'
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Control><Shift>Tab'
4
  • 1
    Why it does not allow it?
    – ado sar
    Apr 9, 2022 at 20:06
  • @adosar Unfortunately I am not a developper, so I cannot tell you what conceptual or perhaps merely technical reasons would prohibit this from working in the Preferences dialog.
    – vanadium
    Apr 10, 2022 at 9:35
  • Hi, I am using 22.04 but it doesn't work. I am hesitant to ask this by creating+posting another question in AskUbuntu. @vanadium if you have some insight in this problem, and if you could help me, it would be great.
    – Tom
    Feb 17 at 2:20
  • @Tom how does it not work? I just found this question and tried the above (on 22.04 LTS) and it works fine for me. Curiously, the gnome terminal settings UI says "Invalid" for the shortcuts in question, but they work as expected. shrugs Aug 2 at 21:43
1

@vanadium answer is correct.

You can also set it via UI in the Gnome Terminal Preferences:

enter image description here

1
  • Note that setting Ctrl+Tab ans Ctrl+Shift+Tab does not work though the preferences dialog as I indicated in my answer (did you test?). You can set different keys, though. You may want to test and delete your answer if indeed it does not work for said keys.
    – vanadium
    Aug 13 at 14:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .