RedBearAK / toshy

Keymapper config to make Linux work like a 'Tosh!
https://toshy.app
GNU General Public License v3.0
226 stars 15 forks source link

Add shortcuts for going back and forward in IntelliJ (copied from PR #260) #270

Closed RedBearAK closed 2 months ago

RedBearAK commented 2 months ago

Copied from PR #260 to re-submit on behalf of the original submitter, because I messed up the contributor instructions and that PR ended up with 168 excess commits from my previous work on the dev_beta branch.


Description of the Changes: I have mapped Cmd+[ to alt+shift+left and Cmd+] to alt+shift+right to be able to go back and forward in IntelliJ or other IntelliJ-based IDEs (example CLion or Goland). I have been using this config myself and feel that the community can benefit from it.

Reason for Changes: I have linked the relevant keymaps in IntelliJ source code below for reference.

IntelliJ defaults on MacOS for "Back" and "Forward" are

  1. Back = meta OPEN_BRACKET
  2. Forward = meta CLOSE_BRACKET

meta OPEN_BRACKET translates to C-Left_Brace, and meta CLOSE_BRACKET translates to C-Right_Brace for toshy config. I would like to be able to use these shortcuts on GNOME.

IntelliJ defaults on GNOME for "Back" and "Forward" are

  1. Back = shift alt LEFT
  2. Forward = shift alt RIGHT

Related Issue(s) or PR(s):

260

Testing Done: Tested on IntelliJ and Goland in GNOME environment.