mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 21:33:31 +01:00
fix some comment typos
This commit is contained in:
@@ -127,7 +127,7 @@ function Mappings() //{{{
|
|||||||
|
|
||||||
// FIXME: initialize empty map tables
|
// FIXME: initialize empty map tables
|
||||||
if (user[mode])
|
if (user[mode])
|
||||||
mappings = user[mode].concat(main[mode])
|
mappings = user[mode].concat(main[mode]);
|
||||||
else
|
else
|
||||||
mappings = main[mode]
|
mappings = main[mode]
|
||||||
|
|
||||||
@@ -345,15 +345,15 @@ function Mappings() //{{{
|
|||||||
function()
|
function()
|
||||||
{
|
{
|
||||||
if (vimperator.tabs.getTab() == vimperator.tabs.alternate)
|
if (vimperator.tabs.getTab() == vimperator.tabs.alternate)
|
||||||
{
|
{
|
||||||
vimperator.echoerr("E23: No alternate page");
|
vimperator.echoerr("E23: No alternate page");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: this currently relies on v.tabs.index() returning the
|
// NOTE: this currently relies on v.tabs.index() returning the
|
||||||
// currently selected tab index when passed null
|
// currently selected tab index when passed null
|
||||||
var index = vimperator.tabs.index(vimperator.tabs.alternate);
|
var index = vimperator.tabs.index(vimperator.tabs.alternate);
|
||||||
|
|
||||||
// TODO: since a tab close is more like a bdelete for us we
|
// TODO: since a tab close is more like a bdelete for us we
|
||||||
// should probably reopen the closed tab when a 'deleted'
|
// should probably reopen the closed tab when a 'deleted'
|
||||||
// alternate is selected
|
// alternate is selected
|
||||||
@@ -362,7 +362,7 @@ function Mappings() //{{{
|
|||||||
else
|
else
|
||||||
vimperator.tabs.select(index);
|
vimperator.tabs.select(index);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
short_help: "Select the alternate tab",
|
short_help: "Select the alternate tab",
|
||||||
usage: ['<C-^>'],
|
usage: ['<C-^>'],
|
||||||
help: "The alternate tab is the last selected tab. This provides a quick method of toggling between two tabs."
|
help: "The alternate tab is the last selected tab. This provides a quick method of toggling between two tabs."
|
||||||
@@ -436,7 +436,7 @@ function Mappings() //{{{
|
|||||||
short_help: "Open one or more URLs in a new tab",
|
short_help: "Open one or more URLs in a new tab",
|
||||||
help: "Like <code class=\"mapping\">o</code> but open URLs in a new tab.<br/>" +
|
help: "Like <code class=\"mapping\">o</code> but open URLs in a new tab.<br/>" +
|
||||||
"See <code class=\"command\">:tabopen</code> for more details."
|
"See <code class=\"command\">:tabopen</code> for more details."
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["T"],
|
addDefaultMap(new Map(vimperator.modes.NORMAL, ["T"],
|
||||||
function(count) { vimperator.commandline.open(":", "tabopen " + getCurrentLocation(), vimperator.modes.EX); },
|
function(count) { vimperator.commandline.open(":", "tabopen " + getCurrentLocation(), vimperator.modes.EX); },
|
||||||
@@ -719,7 +719,7 @@ function Mappings() //{{{
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
// search managment
|
// search management
|
||||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["g/"],
|
addDefaultMap(new Map(vimperator.modes.NORMAL, ["g/"],
|
||||||
function(count) { vimperator.search.openSearchDialog(); },
|
function(count) { vimperator.search.openSearchDialog(); },
|
||||||
{
|
{
|
||||||
@@ -742,7 +742,7 @@ function Mappings() //{{{
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
// vimperator managment
|
// vimperator management
|
||||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<F1>"],
|
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<F1>"],
|
||||||
function(count) { vimperator.help(null); },
|
function(count) { vimperator.help(null); },
|
||||||
{
|
{
|
||||||
@@ -881,7 +881,7 @@ function Mappings() //{{{
|
|||||||
{ cancel_mode: false, always_active: true }
|
{ cancel_mode: false, always_active: true }
|
||||||
));
|
));
|
||||||
|
|
||||||
// tab managment
|
// tab management
|
||||||
addDefaultMap(new Map(vimperator.modes.HINTS, ["<C-n>"],
|
addDefaultMap(new Map(vimperator.modes.HINTS, ["<C-n>"],
|
||||||
function() { vimperator.tabs.select('+1', true); },
|
function() { vimperator.tabs.select('+1', true); },
|
||||||
{ cancel_mode: true, always_active: true }
|
{ cancel_mode: true, always_active: true }
|
||||||
|
|||||||
Reference in New Issue
Block a user