mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 23:44:12 +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 = {
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
:listoptions and :listcommands, providing more powerful and
|
||||
consistent interactive help facility (improvements include
|
||||
listing keys for modes other than Normal, filtering the output
|
||||
and linking to source locations).
|
||||
and linking to source code locations).
|
||||
- :downloads now opens a download list in the multi-line output
|
||||
buffer.
|
||||
- Added :cookies command.
|
||||
@@ -120,7 +120,7 @@
|
||||
no longer be split at quoted commas and the option name,
|
||||
operators, and = sign may no longer be quoted. This will break
|
||||
certain automatically-generated configuration files.
|
||||
See :help stringlist
|
||||
See :help stringlist.
|
||||
* Option changes:
|
||||
- Added "bookmarks", "diverted", and "links" to 'activate'
|
||||
option.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
xmlns="&xmlns.dactyl;"
|
||||
xmlns:html="&xmlns.html;">
|
||||
|
||||
<dl tag="autocommand-list" tag="autocommand-list" replace="autocommand-list">
|
||||
<dl tag="autocommand-list" replace="autocommand-list">
|
||||
<dt>BookmarkAdd</dt> <dd>Triggered after a page is bookmarked</dd>
|
||||
<dt>BookmarkChange</dt> <dd>Triggered after a page's bookmark is changed</dd>
|
||||
<dt>BookmarkRemove</dt> <dd>Triggered after a page's bookmark is removed</dd>
|
||||
@@ -26,7 +26,7 @@
|
||||
<dt>Leave</dt> <dd>Triggered before exiting &dactyl.host;</dd>
|
||||
</dl>
|
||||
|
||||
<dl tag="autocommand-args" tag="autocommand-args"replace="autocommand-args">
|
||||
<dl tag="autocommand-args" replace="autocommand-args">
|
||||
<dt><bookmark></dt> <dd>The JavaScript bookmark object. Only for <em>Bookmark*</em>.</dd>
|
||||
<dt><changed></dt> <dd>The name of the property that has changed. Only for <em>BookmarkChange</em>.</dd>
|
||||
<dt><doc></dt> <dd>The document for which the event occurred. Only for <em>DOMLoad</em>, <em>PageLoad</em> and <em>PageLoadPre</em>.</dd>
|
||||
|
||||
Reference in New Issue
Block a user