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

Crude source line linkification in :*usage.

This commit is contained in:
Kris Maglione
2010-12-03 18:11:05 -05:00
parent 4f696a4a2e
commit 252e7450f1
6 changed files with 42 additions and 10 deletions

View File

@@ -294,7 +294,14 @@ const Template = Module("Template", {
{
this.map(iter, function (item)
<tr>
<td highlight="Title" style="padding-right: 20px">{item.name || item.names[0]}</td>
<td highlight="Title" style="padding-right: 20px">{
let (name = item.name || item.names[0], frame = item.definedAt)
frame ? <a xmlns:dactyl={NS} dactyl:command="buffer.viewSource"
href={frame.filename} line={frame.lineNumber}>
<abbr title={"Defined at " + frame.filename + ":" + frame.lineNumber}>
{name}</abbr></a>
: name
}</td>
<td>{item.description}</td>
</tr>)
}