mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 05:35:41 +02:00
Crude source line linkification in :*usage.
This commit is contained in:
1 parent
4f696a4a2e
commit
252e7450f1
6 files changed
+42
-10
No files matched your search
@@ -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>)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user