1
0
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:
Martin Stubenschrott
2007-11-18 04:14:20 +00:00
parent b46255f7cd
commit b20dac2b99

View File

@@ -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."