LoginSignup
8
8

More than 5 years have passed since last update.

タブのピン留めをトグルする

Last updated at Posted at 2012-12-16

タブのピン留めにはなぜかショートカットキーが割り当てられていないので,Vimperator からこれを実現することに.
p とか P は既にバインドされているので,そのとなりの @ に割り当てた.

.vimperatorrc
javascript <<EOM
liberator.modules.commands.addUserCommand(["togglepin"], "add pin to current tab",
function(){
    var currentTab = gBrowser.mCurrentTab
    if(currentTab.pinned){
        gBrowser.unpinTab(currentTab)
    }
    else{
        gBrowser.pinTab(currentTab)
    }
});
EOM
nnoremap @ :togglepin <CR>
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8