diff options
author | teramako | 2010-12-17 00:17:13 +0900 |
---|---|---|
committer | teramako | 2010-12-17 00:17:13 +0900 |
commit | 7476f5c0b6fa120d90683c860dea442a398fa74c (patch) | |
tree | d844dfcf8e8ab78e5f887bd18210be07ae73c5d1 | |
parent | f5efec7fc900a12083ebc1e6da1dc2f05a3ad799 (diff) | |
download | vimperator-plugins-7476f5c0b6fa120d90683c860dea442a398fa74c.tar.bz2 |
add subcommand pin[tab]
-rw-r--r-- | panorama.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/panorama.js b/panorama.js index f9649da..464bdaa 100644 --- a/panorama.js +++ b/panorama.js @@ -95,6 +95,13 @@ let INFO = <> </description> </item> <item> + <tags>pintab pin</tags> + <spec>pin<oa>tab</oa></spec> + <description> + <p>pin the current tab, if already pinned, unpin.</p> + </description> + </item> + <item> <tags>settitle</tags> <spec>settitle <a>title</a> <oa>GroupName</oa></spec> <description> @@ -704,6 +711,19 @@ let subCmds = [ }, true) // }}} , /** + * SubCommand pinTab {{{ + */ + new Command(["pin[tab]"], "toggle AppTab the current tab", + function (args) { + let currentTab = tabs.getTab(); + if (currentTab.pinned) + gBrowser.unpinTab(currentTab); + else + gBrowser.pinTab(currentTab); + }, { + }, true) // }}} + , + /** * SubCommand settitle {{{ */ new Command(["settitle"], "set group title", |