Ubuntu – How to change the keybindings in Nautilus


I'd like to change the keybindings in Nautilus. Specifically, I'd like to make it so Ctrl + Tab and Ctrl + Shift + Tab cycles between tabs instead of Ctrl+ PgUp / PgDn. I can't seem to find anything in dconf, and Nautilus only lists the shortcuts and doesn't let me change them. I tried using the solution here, but (1) the file ~/.config/nautilus/accels does not exist, so I can't figure out the syntax/lines I'm supposed to edit, and (2) making the file and copying their code into it didn't do anything. Any help is appreciated! Thanks!

Best Answer

You can, but it's not easy: The standard parameters of Nautilus do not allow you to change these keybindings as there are no configuration parameters for them:

gsettings list-recursively | grep --ignore-case nautilus

So you have 2 possibilities:

  1. Switch to Nemo, which has the capabilities you seek out of the box (and more ...)
  2. Clone the source of Nautilus, edit the source code, change Ctrl+PgUp to Ctrl+Tab and build your own version:

    cd Documents
    git clone https://github.com/GNOME/nautilus
    cd nautilus/src
    grep --recursive --ignore-case tabs *
    nano nautilus-window.c #This is where you need to do more work yourself
    cd ..
    sudo checkinstall

That's as far as I want to go, because I took the easy way and deployed Nemo because I abhor the direction the GNOME developers took as they prefer "simplicity", whereas I like my stuff complex and full of features.

Sorry! ¯\_(ツ)_/¯

Related Question