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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)