mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 13:15:45 +01:00
Typo and consistency fixes.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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><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><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><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><q-args></em></ex></code>
|
||||
</p>
|
||||
|
||||
<h3 tag="E177 E178 :command-count">Count handling</h3>
|
||||
|
||||
@@ -1568,7 +1568,7 @@
|
||||
load.
|
||||
</p>
|
||||
|
||||
<p>See also <ex>:contexts</ex></p>
|
||||
<p>See also <ex>:contexts</ex>.</p>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -399,15 +399,16 @@ function isSubclass(targ, src) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if object is an instance or interfaces. If interfaces is an array,
|
||||
* returns true if object is an instance of any element of interfaces. If interfaces is
|
||||
* the object form of a primitive type, returns true if object is a
|
||||
* non-boxed version of the type, i.e., if (typeof object == "string"),
|
||||
* isinstance(object, String) is true. Finally, if interfaces is a string,
|
||||
* returns true if ({}.toString.call(object) == "[object <interfaces>]").
|
||||
* Returns true if *object* is an instance of *interfaces*. If *interfaces* is
|
||||
* an array, returns true if *object* is an instance of any element of
|
||||
* *interfaces*. If *interfaces* is the object form of a primitive type,
|
||||
* returns true if *object* is a non-boxed version of the type, i.e., if
|
||||
* (typeof object == "string"), isinstance(object, String) is true. Finally, if
|
||||
* *interfaces* is a string, returns true if ({}.toString.call(object) ==
|
||||
* "[object <interfaces>]").
|
||||
*
|
||||
* @param {object} object The object to check.
|
||||
* @param {constructor|[constructor|string]} interfaces The types to check object against.
|
||||
* @param {constructor|[constructor|string]} interfaces The types to check *object* against.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
var isinstance_types = {
|
||||
|
||||
Reference in New Issue
Block a user