this post was submitted on 08 Jul 2026
11 points (86.7% liked)

Firefox

7402 readers
2 users here now

A community for discussion about Mozilla Firefox.

founded 3 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Emperor@reddthat.com 2 points 2 weeks ago (1 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.

[โ€“] yaw@infosec.pub 1 points 2 weeks ago (1 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!

[โ€“] Emperor@reddthat.com 1 points 2 weeks ago (1 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.

[โ€“] yaw@infosec.pub 1 points 2 weeks ago (1 children)

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

[โ€“] Emperor@reddthat.com 2 points 2 weeks ago (1 children)

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

[โ€“] yaw@infosec.pub 1 points 2 weeks ago (1 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?

[โ€“] Emperor@reddthat.com 2 points 6 days ago (1 children)

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.

[โ€“] yaw@infosec.pub 2 points 1 day ago

okay, I don't know what it is, but ctrl+{1,2,...,9} now works as expected ....