1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 01:14:12 +01:00

Add <A-F1> to open the single unchunked help page.

This commit is contained in:
Doug Kearns
2011-01-01 20:28:14 +11:00
parent d8bb3f4b32
commit 053ef86016
4 changed files with 11 additions and 5 deletions

View File

@@ -1467,9 +1467,13 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
mappings: function () { mappings: function () {
mappings.add(modes.all, ["<F1>"], mappings.add(modes.all, ["<F1>"],
"Open the help page", "Open the introductory help page",
function () { dactyl.help(); }); function () { dactyl.help(); });
mappings.add(modes.all, ["<A-F1>"],
"Open the single unchunked help page",
function () { ex.helpall(); });
if (dactyl.has("session")) if (dactyl.has("session"))
mappings.add([modes.NORMAL], ["ZQ"], mappings.add([modes.NORMAL], ["ZQ"],
"Quit and don't save the session", "Quit and don't save the session",
@@ -1790,7 +1794,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
[ [
{ {
name: "h[elp]", name: "h[elp]",
description: "Open the help page" description: "Open the introductory help page"
}, { }, {
name: "helpa[ll]", name: "helpa[ll]",
description: "Open the single unchunked help page" description: "Open the single unchunked help page"
@@ -1802,7 +1806,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
command.description, command.description,
function (args) { function (args) {
dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.assert(!args.bang, "E478: Don't panic!");
dactyl.help(args.literalArg, unchunked); dactyl.help(args.literalArg, unchunked);
}, { }, {
argCount: "?", argCount: "?",

View File

@@ -47,7 +47,8 @@ This file contains a list of all available commands, mappings and options.
</dl> </dl>
<dl> <dl>
<dt><k name="F1"/></dt> <dd>Open help window</dd> <dt><k name="F1"/></dt> <dd>Open the introductory help page</dd>
<dt><k name="A-F1"/></dt> <dd>Open the single unchunked help page</dd>
</dl> </dl>
<dl> <dl>

View File

@@ -301,8 +301,9 @@
</item> </item>
<item> <item>
<tags>:helpall :helpa help-all</tags> <tags><![CDATA[<A-F1> :helpall :helpa help-all]]></tags>
<spec>:helpa<oa>ll</oa> <oa>subject</oa></spec> <spec>:helpa<oa>ll</oa> <oa>subject</oa></spec>
<spec>&lt;A-F1></spec>
<description> <description>
<p>Open all help pages coalesced into a single page.</p> <p>Open all help pages coalesced into a single page.</p>

View File

@@ -141,6 +141,7 @@
- Add basic plugin authorship documentation. - Add basic plugin authorship documentation.
- The help system is newly modularized and features significant - The help system is newly modularized and features significant
updates, rewrites, and formatting improvements. updates, rewrites, and formatting improvements.
- Added <A-F1> to open the single unchunked help page.
* Removed :beep. * Removed :beep.
* Removed :edit, :tabedit, and :winedit aliases. * Removed :edit, :tabedit, and :winedit aliases.
* Removed :play. * Removed :play.