diff --git a/AUTHORS b/AUTHORS index cd4e3695..50add042 100644 --- a/AUTHORS +++ b/AUTHORS @@ -12,7 +12,7 @@ Inactive/former developers: * Viktor Kojouharov (Виктор Кожухаров) Patches (in no special order): - * Dominik Meister (:b# support) + * Dominik Meister (:b# support and other buffer related commands) * Konstantin Stepanov (:%foo support, :tabduplicate) * Lukas Mai * Guido Van Hoecke diff --git a/NEWS b/NEWS index 9c9631cc..dca8f68d 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,8 @@ generous donation which made this behavior possible) * IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just too unpredictable + * add :bl[ast], :bf[irst], :br[ewind] to go to first/last tab + * add :bn[ext], :bp[revious], :bN[ext] to switch to next/previous tab * add :pagestyle command to allow for switching between alternate style sheets * add :b# to select the alternate buffer * add :tabduplicate command diff --git a/content/tabs.js b/content/tabs.js index 577e3e24..1531745b 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -300,12 +300,12 @@ liberator.Tabs = function () //{{{ completer: function (filter) { return liberator.completion.ex(filter); } }); - liberator.commands.add(["tabl[ast]"], + liberator.commands.add(["tabl[ast]", "bl[ast]"], "Switch to the last tab", function () { liberator.tabs.select("$", false); }); // TODO: count support - liberator.commands.add(["tabp[revious]", "tp[revious]", "tabN[ext]", "tN[ext]"], + liberator.commands.add(["tabp[revious]", "tp[revious]", "tabN[ext]", "tN[ext]", "bp[revious]", "bN[ext]"], "Switch to the previous tab or go [count] tabs back", function (args) { @@ -318,7 +318,7 @@ liberator.Tabs = function () //{{{ }); // TODO: count support - liberator.commands.add(["tabn[ext]", "tn[ext]"], + liberator.commands.add(["tabn[ext]", "tn[ext]", "bn[ext]"], "Switch to the next or [count]th tab", function (args) { @@ -340,7 +340,7 @@ liberator.Tabs = function () //{{{ } }); - liberator.commands.add(["tabr[ewind]", "tabfir[st]"], + liberator.commands.add(["tabr[ewind]", "tabfir[st]", "br[ewind]", "bf[irst]"], "Switch to the first tab", function () { liberator.tabs.select(0, false); }); diff --git a/locale/en-US/various.txt b/locale/en-US/various.txt index 04237abc..586de2b1 100644 --- a/locale/en-US/various.txt +++ b/locale/en-US/various.txt @@ -1161,8 +1161,9 @@ support it, currently: ________________________________________________________________________________ -|:tabl| |:tablast| -||:tabl[ast]|| +|:bl| |:blast| |:tabl| |:tablast| +||:tabl[ast]|| + +||:bl[ast]|| ________________________________________________________________________________ Switch to the last tab. ________________________________________________________________________________ @@ -1179,8 +1180,10 @@ specified the movement wraps around the start or end of the tab list. ________________________________________________________________________________ -|:tn| |:tnext| |:tabn| |:tabnext| +|:bn| |:bnext| |:tn| |:tnext| |:tabn| |:tabnext| ||:tabn[ext] [count]|| + +||:tn[ext] [count]|| + +||:bn[ext] [count]|| ________________________________________________________________________________ Switch to the next or [count]th tab. Cycles to the first tab when the last is selected and {count} is not specified. @@ -1194,17 +1197,23 @@ Close all other tabs. ________________________________________________________________________________ -|:tN| |:tNext| |:tabN| |:tabNext| |:tp| |:tprevious| |:tabp| |:tabprevious| +|:bN| |:bNext| |:bp| |:bprevious| |:tN| |:tNext| |:tabN| |:tabNext| |:tp| |:tprevious| |:tabp| |:tabprevious| ||:tabp[revious] [count]|| + +||:tp[revious] [count]|| + +||:tabN[ext] [count]|| + +||:bp[revious] [count]|| + +||:bN[ext] [count]|| ________________________________________________________________________________ Switch to the previous tab or go [count] tabs back. Wraps around from the first tab to the last tab. ________________________________________________________________________________ -|:tabfir| |:tabfirst| |:tabr| |:tabrewind| +|:bf| |:bfirst| |:br| |:brewind| |:tabfir| |:tabfirst| |:tabr| |:tabrewind| ||:tabr[ewind]|| + -||:tabfir[st]|| +||:tabfir[st]|| + +||:br[ewind]|| + +||:bf[irst]|| Switch to the first tab. ________________________________________________________________________________ ________________________________________________________________________________