From 451b094c21046d3bd4506cd14b01292ab508badb Mon Sep 17 00:00:00 2001 From: Ted Pavlic Date: Fri, 2 Jan 2009 12:30:18 -0500 Subject: [PATCH] Document ;V in :help and in completion. --- common/content/hints.js | 32 +++++++++++++++---------------- vimperator/locale/en-US/hints.txt | 3 +++ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/common/content/hints.js b/common/content/hints.js index fbca93bd..2fcba8e2 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -64,23 +64,23 @@ function Hints() //{{{ Mode.defaultValue("tags", function () function () options.hinttags); function extended() options.extendedhinttags; const hintModes = { - ";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended), - a: Mode("Save hint with prompt", function (elem) buffer.saveLink(elem, false)), - f: Mode("Focus frame", function (elem) elem.ownerDocument.defaultView.focus(), function () "//body | //xhtml:body"), - s: Mode("Save hint", function (elem) buffer.saveLink(elem, true)), - o: Mode("Follow hint", function (elem) buffer.followLink(elem, liberator.CURRENT_TAB)), - t: Mode("Follow hint in a new tab", function (elem) buffer.followLink(elem, liberator.NEW_TAB)), - b: Mode("Follow hint in a background tab", function (elem) buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB)), - v: Mode("View hint source", function (elem, loc) buffer.viewSource(loc, false), extended), - V: Mode("View hint source", function (elem, loc) buffer.viewSource(loc, true), extended), - w: Mode("Follow hint in a new window", function (elem) buffer.followLink(elem, liberator.NEW_WINDOW), extended), + ";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended), + a: Mode("Save hint with prompt", function (elem) buffer.saveLink(elem, false)), + f: Mode("Focus frame", function (elem) elem.ownerDocument.defaultView.focus(), function () "//body | //xhtml:body"), + s: Mode("Save hint", function (elem) buffer.saveLink(elem, true)), + o: Mode("Follow hint", function (elem) buffer.followLink(elem, liberator.CURRENT_TAB)), + t: Mode("Follow hint in a new tab", function (elem) buffer.followLink(elem, liberator.NEW_TAB)), + b: Mode("Follow hint in a background tab", function (elem) buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB)), + v: Mode("View hint source", function (elem, loc) buffer.viewSource(loc, false), extended), + V: Mode("View hint source in external editor", function (elem, loc) buffer.viewSource(loc, true), extended), + w: Mode("Follow hint in a new window", function (elem) buffer.followLink(elem, liberator.NEW_WINDOW), extended), - "?": Mode("Show information for hint", function (elem) buffer.showElementInfo(elem), extended), - O: Mode("Open location based on hint", function (elem, loc) commandline.open(":", "open " + loc, modes.EX)), - T: Mode("Open new tab based on hint", function (elem, loc) commandline.open(":", "tabopen " + loc, modes.EX)), - W: Mode("Open new window based on hint", function (elem, loc) commandline.open(":", "winopen " + loc, modes.EX)), - y: Mode("Yank hint location", function (elem, loc) util.copyToClipboard(loc, true)), - Y: Mode("Yank hint description", function (elem) util.copyToClipboard(elem.textContent || "", true), extended) + "?": Mode("Show information for hint", function (elem) buffer.showElementInfo(elem), extended), + O: Mode("Open location based on hint", function (elem, loc) commandline.open(":", "open " + loc, modes.EX)), + T: Mode("Open new tab based on hint", function (elem, loc) commandline.open(":", "tabopen " + loc, modes.EX)), + W: Mode("Open new window based on hint", function (elem, loc) commandline.open(":", "winopen " + loc, modes.EX)), + y: Mode("Yank hint location", function (elem, loc) util.copyToClipboard(loc, true)), + Y: Mode("Yank hint description", function (elem) util.copyToClipboard(elem.textContent || "", true), extended) }; // reset all important variables diff --git a/vimperator/locale/en-US/hints.txt b/vimperator/locale/en-US/hints.txt index a336d3f6..497970f5 100644 --- a/vimperator/locale/en-US/hints.txt +++ b/vimperator/locale/en-US/hints.txt @@ -72,6 +72,9 @@ this hint mode. Then press [a]24[a] to copy the hint location. |;v| * [m]v[m] to view its destination source +|;V| +* [m]V[m] to view its destination source in the external editor + |;w| * [m]w[m] to open its destination in a new window