mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 14:55:47 +01:00
Make the <k> tag mode-aware.
Previously there was no way to produce links to the appropriate mode-specific binding of a key using the <k> tag (e.g., <Tab> in the documentation always linked to the Normal-mode command, although its command-line functionality is different). This commit introduces a `mode' attribute to the <k> tag, making the distinction possible.
This commit is contained in:
@@ -96,7 +96,12 @@
|
||||
<dt>ex</dt> <dd>Link to an ex command. (HelpEx)</dd>
|
||||
<dt>k</dt> <dd>Link to a key. (HelpKey)</dd>
|
||||
<dt>&tab;@name</dt> <dd>The name attribute to <k>. When provided, <<a>value</a>> is prepended to
|
||||
the element's contents, i.e., <em><k name="lt"/></em> becomes <em><k name="lt"/></em>.
|
||||
the element's contents, i.e., <em><k name="Tab"/></em> becomes <em><k name="Tab"/></em>.
|
||||
</dd>
|
||||
<dt>&tab;@mode</dt> <dd>The mode attribute to <k>. Some keys have different functions in different modes.
|
||||
You can use this attribute to specify which of the modes (other than Normal) a key pertains to.
|
||||
The <<a>value</a>> is prepended to the element's contents, i.e., <em><k name="C-i" mode="i"/></em>
|
||||
becomes <em><k name="C-i" mode="i"/></em>, and <em><k mode="i">i</k></em> becomes <em><k mode="i">i</k></em>.
|
||||
</dd>
|
||||
<dt>t</dt> <dd>Links to an arbitrary help topic. (HelpTopic)</dd>
|
||||
</dl>
|
||||
|
||||
Reference in New Issue
Block a user