From 7476f5c0b6fa120d90683c860dea442a398fa74c Mon Sep 17 00:00:00 2001 From: teramako Date: Fri, 17 Dec 2010 00:17:13 +0900 Subject: add subcommand pin[tab] --- panorama.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/panorama.js b/panorama.js index f9649da..464bdaa 100644 --- a/panorama.js +++ b/panorama.js @@ -94,6 +94,13 @@ let INFO = <>

pull a tab from the other group

+ + pintab pin + pintab + +

pin the current tab, if already pinned, unpin.

+
+
settitle settitle title GroupName @@ -703,6 +710,19 @@ let subCmds = [ completer: function (context) completion.buffer(context, completion.buffer.GROUPS | completion.buffer.ORPHANS), }, 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 {{{ */ -- cgit v1.2.3