41

Keyboard shortcuts in gnome-terminal (Ctrl+Tab and Ctrl+Shift+Tab) in 12.04 don't seem to be working. Is there a setting that I dont know of?

Eliah Kagan
  • 117,780
PnotNP
  • 3,079

7 Answers7

78

A way to configure this is by setting gsettings from the terminal itself (two commands):

gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Primary>Tab'
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Primary><Shift>Tab'

Source: the last comment in the bug report

25

Use dconf Editor. If it's not installed by default you can get it with sudo apt-get install dconf-tools. The shortcut can be modified at Org > Gnome > Terminal > Legacy > Keybindings.

Screenshot of dconf Editor

This works for me in Ubuntu Gnome 16.04. Reference: https://bugzilla.gnome.org/show_bug.cgi?id=738325

18

Unfortunately assigning shortcuts with TAB key is a no go in Gnome (for whatever reason). So this will not work.

There is a way to do this in a hacky way, from the answer below type this in the terminal:

gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Primary>Tab'
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Primary><Shift>Tab'
  • 5
    it is really uncomfortable to not have ctrl-tab. Thanks for that though, ive already learned to live without it. I should use ctrl-~ and ctrl-shift-~ now. – PnotNP May 09 '12 at 21:09
  • I tend to learn the native shortcuts and use those. So for gnome-terminal it's ctrl-shift-right & ctrl-shift-left – Paweł Gościcki May 09 '12 at 21:20
  • Another follow up https://mail.gnome.org/archives/desktop-devel-list/2009-November/msg00220.html – Braiam Aug 28 '13 at 03:17
  • 1
    That bug report says it's RESOLVED FIXED, yet the problem seems to exist. Was it just reported fixed without doing anything? – Rahat Ahmed Dec 11 '13 at 00:25
  • I have my caps-lock mapped to escape through the OS and then I use Ctrl+Esc for next tab, so on the keyboard I am actually pressing Ctrl+Caps Lock for next tab. – still_dreaming_1 Aug 04 '15 at 18:06
  • Really a shame that we have to use workarounds as described below, instead of just allowing to set this via the UI... – Mira Weller Nov 22 '17 at 18:34
  • The suggestions below work just fine and have more votes than this one. I feel like one of them should be the accepted answer. – tobias.mcnulty May 20 '20 at 14:43
3

Use Ctrl+PageUP and Ctrl+PageDown (annoying, but it is what we have).

  • I tried setting Tab for mate terminal with dconf. org/mate/terminal/keybindings/next-tab. It works to change the setting with dconf but mate terminal thinks the shortcut is invalid for some reason. But Tab seems to work with gnome terminal. – Albert Veli Feb 26 '21 at 07:38
1

This may be a little heretic to do in gnome but you can install Konsole and have those shortcuts like so:

sudo apt install konsole

The shortcut Ctrl+Tab is set by default.

Note: Konsole is the KDE default terminal

Zanna
  • 70,465
jogarcia
  • 155
0

Resetting the dconf to 'factory setting' might help sometime(At least in my case when my Ctrl+T was not working system wide)

dconf reset -f /org/gnome/
AEM
  • 1,166
Rahul
  • 405
0

One thing very interesting I found days ago is that the gnome does:
- Ctrl+Tab Switch between different application
- Ctrl+`(The one above Tab) Switch between different windows of one application
Try this.

chi chow
  • 116