mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 01:22:27 +01:00
Better grouping of extended hints in help. Also made completion list consistent with help list.
This commit is contained in:
@@ -65,20 +65,19 @@ function Hints() //{{{
|
|||||||
function extended() options.extendedhinttags;
|
function extended() options.extendedhinttags;
|
||||||
const hintModes = {
|
const hintModes = {
|
||||||
";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended),
|
";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended),
|
||||||
|
"?": Mode("Show information for hint", function (elem) buffer.showElementInfo(elem), extended),
|
||||||
|
s: Mode("Save hint", function (elem) buffer.saveLink(elem, true)),
|
||||||
a: Mode("Save hint with prompt", function (elem) buffer.saveLink(elem, false)),
|
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"),
|
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)),
|
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)),
|
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)),
|
b: Mode("Follow hint in a background tab", function (elem) buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB)),
|
||||||
|
w: Mode("Follow hint in a new window", function (elem) buffer.followLink(elem, liberator.NEW_WINDOW), extended),
|
||||||
|
O: Mode("Preselect hint in an :open query", function (elem, loc) commandline.open(":", "open " + loc, modes.EX)),
|
||||||
|
T: Mode("Preselect hint in a :tabopen query", function (elem, loc) commandline.open(":", "tabopen " + loc, modes.EX)),
|
||||||
|
W: Mode("Preselect hint in a :winopen query", function (elem, loc) commandline.open(":", "winopen " + loc, modes.EX)),
|
||||||
v: Mode("View hint source", function (elem, loc) buffer.viewSource(loc, false), extended),
|
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),
|
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 location", function (elem, loc) util.copyToClipboard(loc, true)),
|
||||||
Y: Mode("Yank hint description", function (elem) util.copyToClipboard(elem.textContent || "", true), extended)
|
Y: Mode("Yank hint description", function (elem) util.copyToClipboard(elem.textContent || "", true), extended)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -41,18 +41,18 @@ this hint mode. Then press [a]24[a] to copy the hint location.
|
|||||||
|
|
||||||
* |;;| [m];[m] to focus a link and hover it with the mouse
|
* |;;| [m];[m] to focus a link and hover it with the mouse
|
||||||
* |;?| [m]?[m] to show information about the element (incomplete)
|
* |;?| [m]?[m] to show information about the element (incomplete)
|
||||||
|
* |;s| [m]s[m] to save its destination
|
||||||
* |;a| [m]a[m] to save its destination (prompting for save location)
|
* |;a| [m]a[m] to save its destination (prompting for save location)
|
||||||
* |;f| [m]f[m] to focus a frame
|
* |;f| [m]f[m] to focus a frame
|
||||||
* |;s| [m]s[m] to save its destination
|
|
||||||
* |;o| [m]o[m] to open its location in the current tab
|
* |;o| [m]o[m] to open its location in the current tab
|
||||||
* |;t| [m]t[m] to open its location in a new tab
|
* |;t| [m]t[m] to open its location in a new tab
|
||||||
* |;b| [m]b[m] to open its location in a new background tab
|
* |;b| [m]b[m] to open its location in a new background tab
|
||||||
* |;O| [m]O[m] to open its location in an [c]:open[c] query
|
* |;w| [m]w[m] to open its destination in a new window
|
||||||
* |;T| [m]T[m] to open its location in a [c]:tabopen[c] query
|
* |;O| [m]O[m] to preselect its location in an [c]:open[c] query
|
||||||
|
* |;T| [m]T[m] to preselect its location in a [c]:tabopen[c] query
|
||||||
|
* |;W| [m]W[m] to preselect its location in a [c]:winopen[c] query
|
||||||
* |;v| [m]v[m] to view its destination source
|
* |;v| [m]v[m] to view its destination source
|
||||||
* |;V| [m]V[m] to view its destination source in the external editor
|
* |;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
|
|
||||||
* |;W| [m]W[m] to open its location in a [c]:winopen[c] query
|
|
||||||
* |;y| [m]y[m] to yank its destination location
|
* |;y| [m]y[m] to yank its destination location
|
||||||
* |;Y| [m]Y[m] to yank its text description
|
* |;Y| [m]Y[m] to yank its text description
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user