The extension doesn’t take into account that some tabs may be hidden. Instead of ignoring tabs that are not currently visible, it counts through all tabs, both visible and hidden.
Right click on the last tab and hide it (or move it to a different group).
Press Ctrl+9.
Expected results: The last visible tab is active. Actual results: The hidden tab is unhidden and active, since that was the last tab before it was hidden.
Note that this bug doesn’t occur using the built-in Alt+#.
Firefox 106 introduced firefox view which is a separate tab that is the very first item of the tab list.
This tab however can't be switched to with the current ctrl keys.
Thus, I propose to set Ctrl + 0 as a keybind to switch to this special tab, as the keybind isn't in use yet, and it also kind of makes sense to have this first tab that is special be at the index 0.
If wanted, I can try to implement this, but I can't guarantee anything.
I have some services that run as pinned tabs that are always there and have their own shortcuts / don't need regularly accessing such as a pinned WhatsApp web tab, a tab manager & Syncthing webUI. Currently I have have the option to rebind the shortcuts for tabs 4-8 to ctrl+1-4 respectively however this halves the amount of general browsing tabs I can access by shortcut.
From my experience most pinned tabs are not used for general browsing and users often already have unique shortcuts for the ones they need this is evidenced by the fact firefoxe's built in ctrl+tab ignores pinned tabs.
Proposed solution
adding an options menu with a toggle button "Ignore pinned tabs" when selected will only count unpinned tabs as tabs 1-8.
or
add option to ignore specific tabs, this could be by position or blacklist by url