mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-01 21:12:27 +01:00
added -title=... to a mapping
This commit is contained in:
@@ -431,7 +431,13 @@ vimperator.Mappings = function () //{{{
|
||||
}
|
||||
));
|
||||
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["a"],
|
||||
function () { vimperator.commandline.open(":", "bmark " + vimperator.buffer.URL, vimperator.modes.EX); },
|
||||
function ()
|
||||
{
|
||||
var title = "";
|
||||
if (vimperator.buffer.title != vimperator.buffer.URL)
|
||||
title = " -title=\"" + vimperator.buffer.title + "\"";
|
||||
vimperator.commandline.open(":", "bmark " + vimperator.buffer.URL + title, vimperator.modes.EX);
|
||||
},
|
||||
{
|
||||
short_help: "Open a prompt to bookmark the current URL",
|
||||
help: "Look at <code class='command'>:bmark</code> for more information."
|
||||
|
||||
Reference in New Issue
Block a user