1
0
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:
Kris Maglione
2008-12-14 20:28:06 -05:00
parent 3e330c3277
commit 0025d79a1d
2 changed files with 9 additions and 3 deletions

View File

@@ -249,7 +249,13 @@ function Tabs() //{{{
{
mappings.add([modes.NORMAL], ["b"],
"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"],
"Show buffer list",

View File

@@ -85,10 +85,10 @@ ________________________________________________________________________________
|b| |:b| |:buffer|
||:[count]b[uffer][!] [a][url|index][a]|| +
||b||
||[count]b||
________________________________________________________________________________
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
buffer, it is selected. With [!] the next buffer matching the argument is