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

Typo and consistency fixes.

This commit is contained in:
Štěpán Němec
2011-01-20 00:41:16 +01:00
parent d72bf559ee
commit 172c0058cf
9 changed files with 32 additions and 35 deletions

View File

@@ -43,7 +43,7 @@
string representation and all of their enumerable properties.
</p>
<p>See also <ex>:javascript</ex></p>
<p>See also <ex>:javascript</ex>.</p>
</description>
</item>

View File

@@ -625,35 +625,30 @@
describing the command's arguments. It should set the context's
<tt>completions</tt> property to the list of completion results.
Other influential properties include <tt>title</tt>, <tt>sort</tt>,
<tt>anthored</tt>, and <tt>filters</tt>, which are documented in the
<tt>anchored</tt>, and <tt>filters</tt>, which are documented in the
<link topic="resource://dactyl/completion.jsm"
line="17" dactyl:command="buffer.viewSource">source code</link>.
</p>
<p>
<em>start</em> is the index into the word being completed at which the returned values
should be applied and <em>completions</em> is a two-dimensional array of the form:
<em>completions</em> is a two-dimensional array of the form:
<tt>[[arg1, description1], [arg2, description2], …]</tt>
</p>
<p>
Otherwise <a>thing</a> should be an array of the same form as the
<tt>completions</tt> property of the context object.
Otherwise <a>thing</a> should evaluate to an array of the same form
as the <tt>completions</tt> property of the context object.
</p>
<p>
Example:
<code><ex>:command foo -nargs=<str>?</str>
\ -complete custom,<str delim="'">
\ function (context) context.completions = [["arg1", "description1"], ["arg2", "description2"]]</str>
\ <ex>:echo</ex> <str>Useless </str> + <em>&lt;q-args></em></ex>
<code><ex>:command foo -nargs=<str>?</str> -complete custom,
\ <str delim="'">function (context) context.completions = [["arg1", "description1"], ["arg2", "description2"]]</str>
\ <ex>:echo</ex> <str>Useless </str> + <em>&lt;q-args></em></ex>
<ex>:command foo -nargs=<str>?</str>
\ -complete custom,<str delim="'">[
\ ["arg1", "description1"],
\ ["arg2, "description2"]
\ ]</str>
\ <ex>:echo</ex> <str>Same as above but simpler </str> + <em>&lt;q-args></em></ex></code>
\ -complete custom,<str delim="'">[["arg1", "description1"], ["arg2, "description2"]]</str>
\ <ex>:echo</ex> <str>Same as above but simpler </str> + <em>&lt;q-args></em></ex></code>
</p>
<h3 tag="E177 E178 :command-count">Count handling</h3>

View File

@@ -1568,7 +1568,7 @@
load.
</p>
<p>See also <ex>:contexts</ex></p>
<p>See also <ex>:contexts</ex>.</p>
</description>
</item>

View File

@@ -156,7 +156,7 @@
extensions, with all hyphens stripped and any letter following a
hyphen capitalized. So, the file
<em>~/.&dactyl.name;/plugins/foo-bar.js</em> may be accessed as
<em>plugins.fooBar</em>. See also <t>writing-plugins</t>
<em>plugins.fooBar</em>. See also <t>writing-plugins</t>.
</p>
<h3 tag=":source-ex">Ex commands</h3>

View File

@@ -125,7 +125,7 @@
<p>
Every invocation completely replaces the styling of any previous
invocation, unless <em>-append</em> (short option: <em>-a</em>) is
invocation, unless <em>-append</em> (short name <em>-a</em>) is
provided, in which case <a>css</a> is appended to its current
value. If <a>css</a> is not provided, any styles beginning with
<a>group</a> are listed.
@@ -159,7 +159,7 @@
<dl>
<dt>-append</dt>
<dd>If provided along with <em>-name</em>, <oa>css</oa> and
<a>filter</a> are appended to its current value. (short name: <em>-a</em>)</dd>
<a>filter</a> are appended to its current value. (short name <em>-a</em>)</dd>
<dt>-agent</dt>
<dd>If provided, the style is installed as an Agent sheet, which
@@ -167,8 +167,9 @@
elements. (short name <em>-A</em>)</dd>
<dt>-name=<a>name</a></dt>
<dd>If provided, any existing style with the same name is overridden, and the style may later be deleted using <a>name</a>.
(short name <em>-n</em>)</dd>
<dd>If provided, any existing style with the same name is
overridden, and the style may later be deleted using
<a>name</a>. (short name <em>-n</em>)</dd>
</dl>
@@ -191,9 +192,9 @@
<p>The available options are:</p>
<dl>
<dt>-name</dt> <dd>The name provided to <ex>:style</ex> (short option: <em>-n</em>)</dd>
<dt>-name</dt> <dd>The name provided to <ex>:style</ex> (short name <em>-n</em>)</dd>
<dt>-index</dt> <dd>For unnamed styles, the index listed by <ex>:style</ex>
(short option: <em>-i</em>)</dd>
(short name <em>-i</em>)</dd>
</dl>
</description>
</item>

View File

@@ -38,7 +38,7 @@
<p>Fake key events.</p>
<dl>
<dt>-mode</dt> <dd>The mode in which to feed the keys (short name: <em>-m</em>)</dd>
<dt>-mode</dt> <dd>The mode in which to feed the keys (short name <em>-m</em>)</dd>
</dl>
</description>
</item>