pmalecka / shortkeys

A Firefox extension for custom keyboard shortcuts
https://addons.mozilla.org/en-US/firefox/addon/shortkeys
MIT License
11 stars 4 forks source link

Remap tab switching in Firefox #22

Open jchan172 opened 7 years ago

jchan172 commented 7 years ago

Firefox has a default action for switching tabs, but Shortkeys doesn't have an ability to remap that function. The name in Firefox is called browser.ctrlTab.previews. Not being able to remap this function makes me not switch to Firefox and stay on Chrome, unfortunately. The ability to switch back and forth between tabs to read info or compare data is extremely useful.

sleek22 commented 7 years ago

I just installed this on Firefox 57 and it is working perfectly. I have f3 mapped to Next Tab and f2 mapped to Previous Tab and it works as expected.

Note: Make sure to use lower case for function keys, i.e., f3 not F3. The examples in the option mention show this. Also, you type "f" then "3" to input "f3", not press the function key itself when setting up.

jchan172 commented 6 years ago

What I'm asking for is different than Next Tab and Previous Tab. For example, if I was looking at stuff on the 1st tab, and then I clicked on the 4th tab out of 6 tabs, I want to be able to use a shortcut to jump back to that first tab. When I hit that shortcut again, I'll jump back to the 4th tab. Back and forth like that. Currently, Ctrl+Tab will do it if it's enabled. Pressing that will jump to previous, and pressing it again will jump back again. I'd like to be able to remap that.

crittermike commented 6 years ago

Relevant: https://github.com/mikecrittenden/shortkeys/issues/97

jchanfnet commented 6 years ago

I wish that plugin existed for Firefox, which is why I'm asking for it in this plugin.