Read more

RubyMine: How to restore the Back to last position shortcut on Ubuntu 20.04

Florian Leinsinger
March 18, 2021Software engineer at makandra GmbH

I really love to use the shortcuts CTRL+Alt+ Arrow Left and CTRL+Alt+ Arrow Right to navigate through the code. It worked great on Ubuntu 18.04 and MATE but after migrating to my new notebook with GNOME and Ubuntu 20.04, I realized that the shortcuts didn't work anymore. Well, it worked via Navigate > Back and also showed the shortcut, but my fingers weren't able to do this...

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

I cried a lot. (Why God? WHY?)

Then I found this thread on StackOverflow Show archive.org snapshot . It wasn't just me. It seems that there are "ghost" shortcuts in the OS which can't be changed via UI.

But there is hope!

You have to use the default GNOME keymap in your RubyMine which maps the Shortcuts to Alt + Shift + Arrow Left/Right

Image

And it works again! And, come on Shift is like Ctrl. ;-)

Alternative

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"

If you ever want to restore the shortcuts, use:

gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-left
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-right
Posted by Florian Leinsinger to makandra dev (2021-03-18 15:41)