aboutsummaryrefslogtreecommitdiffstats
path: root/panorama.js
diff options
context:
space:
mode:
Diffstat (limited to 'panorama.js')
-rw-r--r--panorama.js20
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",