diff options
Diffstat (limited to 'panorama.js')
-rw-r--r-- | panorama.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/panorama.js b/panorama.js index 7757cd6..aa1e793 100644 --- a/panorama.js +++ b/panorama.js @@ -2,7 +2,7 @@ * Use at your OWN RISK. */ let INFO = <> -<plugin name="panorama" version="0.6.3" +<plugin name="panorama" version="0.6.6" href="https://github.com/vimpr/vimperator-plugins/blob/master/panorama.js" summary="Add supports for Panorama" lang="en-US" @@ -71,13 +71,15 @@ let INFO = <> </description> </item> <item> - <tags>switchgroup swg</tags> + <tags>switchgroup swg g</tags> <spec>switchgroup <a>GroupName</a></spec> <spec>swg <a>GroupName</a></spec> + <spec>g <a>GroupName</a></spec> <spec><oa>count</oa>switchgroup</spec> <spec><oa>count</oa>swg</spec> + <spec><oa>count</oa>g</spec> <description> - <p>Switch group to <a>GroupName</a></p> + <p>Switch group to <a>GroupName</a></p> </description> </item> <item> @@ -102,8 +104,8 @@ let INFO = <> </description> </item> <item> - <tags>settitle</tags> - <spec>settitle <a>title</a> <oa>GroupName</oa></spec> + <tags>title</tags> + <spec>t<oa>itle</oa> <a>title</a> <oa>GroupName</oa></spec> <description> <p>update <a>GroupName</a>'s title to <a>title</a>.</p> <p>if omitted <a>GroupName</a>, update the current group.</p> @@ -601,7 +603,7 @@ let subCmds = [ * swtich to the {group} * if {count} exists, switch to relative {count} */ - new Command(["switchgroup", "swg"], "Switch Group", + new Command(["switchgroup", "swg", "g"], "Switch Group", function (args) { if (args.count > 0) { switchToGroup("+" + args.count, true); @@ -718,9 +720,9 @@ let subCmds = [ }, true) // }}} , /** - * SubCommand settitle {{{ + * SubCommand title {{{ */ - new Command(["settitle"], "set group title", + new Command(["t[itle]"], "set group title", function (args) { let title = args[0], groupName = args.literalArg; @@ -844,8 +846,8 @@ completion.tabgroup = function TabGroupCompleter (context, excludeActiveGroup) { url = getURLFromTab(tab), index = (tab._tPos + 1) + ": "; let item = createItem(index, label, url, indicator, tab.image); - if (!tab.pinned && tab.tabItem && tab.tabItem.parent) { - let groupName = tab.tabItem.parent.getTitle(); + if (!tab.pinned && tab._tabViewTabItem && tab._tabViewTabItem.parent) { + let groupName = tab._tabViewTabItem.parent.getTitle(); if (groupName) { let prefix = groupName + " " + (i + 1) + ": "; item.text.push(prefix + label); |