mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:28:00 +01:00
Allow [count]b == :[count]b
This commit is contained in:
@@ -249,7 +249,13 @@ function Tabs() //{{{
|
|||||||
{
|
{
|
||||||
mappings.add([modes.NORMAL], ["b"],
|
mappings.add([modes.NORMAL], ["b"],
|
||||||
"Open a prompt to switch buffers",
|
"Open a prompt to switch buffers",
|
||||||
function () { commandline.open(":", "buffer! ", modes.EX); });
|
function (count)
|
||||||
|
{
|
||||||
|
if (count != -1)
|
||||||
|
return tabs.switchTo(String(count));
|
||||||
|
commandline.open(":", "buffer! ", modes.EX);
|
||||||
|
},
|
||||||
|
{ flags: Mappings.flags.COUNT });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL], ["B"],
|
mappings.add([modes.NORMAL], ["B"],
|
||||||
"Show buffer list",
|
"Show buffer list",
|
||||||
|
|||||||
@@ -85,10 +85,10 @@ ________________________________________________________________________________
|
|||||||
|
|
||||||
|b| |:b| |:buffer|
|
|b| |:b| |:buffer|
|
||||||
||:[count]b[uffer][!] [a][url|index][a]|| +
|
||:[count]b[uffer][!] [a][url|index][a]|| +
|
||||||
||b||
|
||[count]b||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Go to the specified buffer from the buffer list. Argument can be either the
|
Go to the specified buffer from the buffer list. Argument can be either the
|
||||||
buffer index or the full URL.
|
buffer index or the full URL. If [count] is given, go to the [count]th buffer.
|
||||||
|
|
||||||
If argument is neither a full URL nor an index but uniquely identifies a
|
If argument is neither a full URL nor an index but uniquely identifies a
|
||||||
buffer, it is selected. With [!] the next buffer matching the argument is
|
buffer, it is selected. With [!] the next buffer matching the argument is
|
||||||
|
|||||||
Reference in New Issue
Block a user