From b20dac2b992a63febc8603e974eabf4b0a8f659e Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 18 Nov 2007 04:14:20 +0000 Subject: [PATCH] added -title=... to a mapping --- content/mappings.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/mappings.js b/content/mappings.js index 0e69c9ac..723ecc28 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -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 :bmark for more information."