Hi I use firefox on Linux and want to change to the first, second, third, ..., last tab with ctrl+1/2/3/.../9 instead of alt+1/2/3/.../9 because alt is already mapped to changing desktops. any idea how I could accompilish this?

edit1: I use mac and windows at work and there the shortcuts are ctrl+<number>. It would be so nice to have consistent shortcuts ๐Ÿง

[SOLUTION] install ctrl+number extension recommended by @TobuscusLover2001@lemmy.zip

all 15 comments

sorted by: hot top controversial new old
[โ€“] 2 points 4 months ago (7 children)

I have vimium which lets me set vim like key binds for firefox. It only works once the JS has loaded on a page so default screens like the new tab doesn't work. Other than that, it should let you rebind it to whatever you want, you can disable the other keys yoy don't need.

  • source
  • hideshow 7 child comments
  • [โ€“] [S] 1 point 4 months ago (6 children)

    nice one, I already use vimium and there are command to go to the first and the last tab but not the 2nd to 8th tab, but this is already quite a solid work around thanks!

  • source
  • parent
  • hideshow 6 child comments
  • [โ€“] 1 point 4 months ago (5 children)

    you can use g + n to go to the numbered tab, or shift + t to search existing tabs. they maybe be more shortcuts that you prefer.

    vimium should completely sidestep your issue.

  • source
  • parent
  • hideshow 5 child comments
  • [โ€“] [S] 1 point 3 months ago (4 children)

    I can't seem to find the command: only g0 (firstTab) and g$ (lastTab) : https://vimium.github.io/commands/#tabs

  • source
  • parent
  • hideshow 4 child comments
  • [โ€“] 2 points 3 months ago (3 children)

    have you tried g2? or even relative commands like 2gt to go 2 tabs over?

  • source
  • parent
  • hideshow 3 child comments
  • [โ€“] [S] 1 point 3 months ago (2 children)

    yeah, g2 does nothing.... it's also not mentioned in the docs. 2gt, gT, J and 2K work as expected but are relative. Do you have version 2.4.2 too?

  • source
  • parent
  • hideshow 2 child comments
  • [โ€“] 2 points 3 months ago (1 child)

    This didn't work for me either, sorry I should have checked. Turns out it was this for me: https://github.com/philc/vimium/issues/4053

    You can use vimium c with map g3 runKey keys="g1+2K" if you want to keep RFP.

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] [S] 1 point 4 months ago (3 children)

    This article by firefox didn't help because the action/shortcut/hot key was not shown ...

  • source
  • hideshow 3 child comments
  • [โ€“] 2 points 4 months ago (1 child)

    Try this: https://addons.mozilla.org/en-US/firefox/addon/ctrl-number-to-switch-tabs/

    If it doesnt work, your best option is to either find another extension that does. or bite the bullet and configure a key remapper like keyd and make a "layer" to toggle the bind alt+(num) to ctrl+(num).

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] 1 point 4 months ago

    I think it's just a preview feature, so it's not accessible through a normal menu yet I think, but if you type about:keyboard in the address bar and press Enter, I think it will allow you to remap these (under the Navigation section).

  • source
  • [โ€“] 1 point 4 months ago (1 child)

    Sorry I realised I misread your post. It's strange your keybinds on Linux to change tabs are alt+num? For me, its Ctrl+num... and i think this is the default. The most likely reason is either:

    1. A setting or issue with your desktop environment/keyboard layout
    2. A keybind remapper you might've installed.
    3. An extension you installed on Firefox

    check if the alt/ctrl switch persists outside Firefox.

  • source
  • hideshow 1 child comment
  • [โ€“] [S] 1 point 4 months ago

    This is really weird. I'll have to check on a different distro. I'm currently on fedora and firefox was already installed.

    1. ctrl+T/C/V (new tab, copy, paste) work as expected and all other shortcuts including ctrl and alt work as well
    2. I've installed a keyd for switching alt+mod otherwise it's a pretty fresh install
    3. I started firefox in --safe-mode and got the same behavior. But thanks helping me trouble shoot.
  • source
  • parent