Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

Use Alt+0-9 for non-pinned tabs, Ctrl+0-9 for pinned-tabs

  • 4 odpowiedzi
  • 4 osoby mają ten problem
  • 38 wyświetleń
  • Ostatnia odpowiedź od cadilhac

more options

Hi there community!

As simply stated above, I want to tweak my keyboard shortcuts so that navigating between pinned and non-pinned tabs are distinguished. Reason for that is that I have ~8 pinned tabs (Gmail, Facebook, Feedly, Calendar, HabitsRPG to name a few), and as a result cannot quick navigate between my regular, unpinned tabs using numbered hotkeys.

Thanks!

Hi there community! As simply stated above, I want to tweak my keyboard shortcuts so that navigating between pinned and non-pinned tabs are distinguished. Reason for that is that I have ~8 pinned tabs (Gmail, Facebook, Feedly, Calendar, HabitsRPG to name a few), and as a result cannot quick navigate between my regular, unpinned tabs using numbered hotkeys. Thanks!

Wybrane rozwiązanie

This code when assigned to a key will select a not pinned tab with number D, so you could possibly use the keyconfig or another extension to assign Ctrl 1-9 to the appropriate code. I use this to go to the first unpinned tab without the D code.

var D=1;
var M=gBrowser.mTabContainer;
var C=M.childNodes;
var L=C.length;
var cT=M.selectedIndex,sT=cT,T,i;
for(i=0;T=C[i];i++){if(!T.hasAttribute('pinned')){sT=i;break;}}
M.selectedIndex=sT+D-1;

Test code:

var M=gBrowser.mTabContainer;
var C=M.childNodes;
var L=C.length;
var cT=M.selectedIndex,sT=cT,T,i;
for(i=0;T=C[i];i++){if(!T.hasAttribute('pinned')){sT=i;break;}}
var D=parseInt(prompt("PIN: "+(sT)+"\nCUR: "+(cT+1),L-sT-1))||0;
if(D<0){D=-D;sT=0;}
if(D){M.selectedIndex=sT+D-1;}
Przeczytaj tę odpowiedź w całym kontekście 👍 1

Wszystkie odpowiedzi (4)

more options

Currently this is not a feature of Firefox, however you may be able to create your own short cut with this add on https://addons.mozilla.org/en-US/fire.../customizable-shortcuts/

more options

Thanks for your input! Unfortunately, there is no current binding specific to App tabs, and this addon does not allow creation of new task to shortcut.

more options

Wybrane rozwiązanie

This code when assigned to a key will select a not pinned tab with number D, so you could possibly use the keyconfig or another extension to assign Ctrl 1-9 to the appropriate code. I use this to go to the first unpinned tab without the D code.

var D=1;
var M=gBrowser.mTabContainer;
var C=M.childNodes;
var L=C.length;
var cT=M.selectedIndex,sT=cT,T,i;
for(i=0;T=C[i];i++){if(!T.hasAttribute('pinned')){sT=i;break;}}
M.selectedIndex=sT+D-1;

Test code:

var M=gBrowser.mTabContainer;
var C=M.childNodes;
var L=C.length;
var cT=M.selectedIndex,sT=cT,T,i;
for(i=0;T=C[i];i++){if(!T.hasAttribute('pinned')){sT=i;break;}}
var D=parseInt(prompt("PIN: "+(sT)+"\nCUR: "+(cT+1),L-sT-1))||0;
if(D<0){D=-D;sT=0;}
if(D){M.selectedIndex=sT+D-1;}

Zmodyfikowany przez cor-el w dniu

more options

I used Keyconfig and the provided code to achieve what I wanted. Thanks so much, cor-el! A round of applause! :-)