diff options
author | Štěpán Němec <stepnem@gmail.com> | 2011-01-20 00:41:16 +0100 |
---|---|---|
committer | Štěpán Němec <stepnem@gmail.com> | 2011-01-20 00:41:16 +0100 |
commit | 172c0058cfe9809698ab8dfe5619a6c4f375f2f2 (patch) | |
tree | ecaf66da34fb48acf2a087aaec9499956e549166 /common/locale/en-US/map.xml | |
parent | d72bf559eee456e8aa8a6a87689d3dc797854094 (diff) | |
download | pentadactyl-172c0058cfe9809698ab8dfe5619a6c4f375f2f2.tar.gz |
Typo and consistency fixes.
Diffstat (limited to 'common/locale/en-US/map.xml')
-rw-r--r-- | common/locale/en-US/map.xml | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/common/locale/en-US/map.xml b/common/locale/en-US/map.xml index b1e82c44..222a8115 100644 --- a/common/locale/en-US/map.xml +++ b/common/locale/en-US/map.xml @@ -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> |