mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 17:05:44 +01:00
Update :listkeys for :mapgroups.
This commit is contained in:
@@ -622,7 +622,7 @@ var IO = Module("io", {
|
||||
file.append(config.name + ".vim");
|
||||
dactyl.assert(!file.exists() || args.bang, "File exists");
|
||||
|
||||
let template = util.compileMacro(String(<![CDATA[
|
||||
let template = util.compileMacro(<![CDATA[
|
||||
" Vim syntax file
|
||||
" Language: Pentadactyl configuration file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
@@ -707,7 +707,7 @@ let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: tw=130 et ts=4 sw=4:
|
||||
]]>), true);
|
||||
]]>, true);
|
||||
|
||||
const WIDTH = 80;
|
||||
function wrap(prefix, items, sep) {
|
||||
|
||||
@@ -319,8 +319,9 @@ var Template = Module("Template", {
|
||||
|
||||
usage: function usage(iter, format) {
|
||||
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
|
||||
let desc = format && format.description || function (item) template.linkifyHelp(item.description);
|
||||
let help = format && format.help || function (item) item.name;
|
||||
format = format || {};
|
||||
let desc = format.description || function (item) template.linkifyHelp(item.description);
|
||||
let help = format.help || function (item) item.name;
|
||||
function sourceLink(frame) {
|
||||
let source = template.sourceLink(frame);
|
||||
source.@NS::hint = source.text();
|
||||
@@ -328,6 +329,20 @@ var Template = Module("Template", {
|
||||
}
|
||||
// <e4x>
|
||||
return <table>
|
||||
{ format.headings ?
|
||||
<tr highlight="Title" align="left">
|
||||
{
|
||||
this.map(format.headings, function (h) <th>{h}</th>)
|
||||
}
|
||||
</tr> : ""
|
||||
}
|
||||
{ format.columns ?
|
||||
<colgroup>
|
||||
{
|
||||
this.map(format.columns, function (c) <col style={c}/>)
|
||||
}
|
||||
</colgroup> : ""
|
||||
}
|
||||
{
|
||||
this.map(iter, function (item)
|
||||
<tr>
|
||||
@@ -339,7 +354,7 @@ var Template = Module("Template", {
|
||||
<span highlight="LinkInfo" xmlns:dactyl={NS}>Defined at {sourceLink(frame)}</span>
|
||||
}</span>
|
||||
</td>
|
||||
{ template.map(item.columns, function (c) <td>{c}</td>) }
|
||||
{ item.columns ? template.map(item.columns, function (c) <td>{c}</td>) : "" }
|
||||
<td>{desc(item)}</td>
|
||||
</tr>)
|
||||
}
|
||||
|
||||
@@ -336,6 +336,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
(\}>) // 5
|
||||
)
|
||||
]]>, "giy");
|
||||
macro = String(macro);
|
||||
while (match = re.exec(macro)) {
|
||||
let [, prefix, open, full, macro, close] = match;
|
||||
end += match[0].length;
|
||||
|
||||
Reference in New Issue
Block a user