mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 17:34:12 +01:00
Set the href of links in the output of :jumps to the actual URL.
template.highlightURL should probably have the same change applied but I'm not sure of the intent there.
This commit is contained in:
@@ -224,6 +224,7 @@ const template = {
|
||||
return s + <>{str.substr(start)}</>;
|
||||
},
|
||||
|
||||
// FIXME: why is href="#"?
|
||||
highlightURL: function highlightURL(str, force)
|
||||
{
|
||||
if (force || /^[a-zA-Z]+:\/\//.test(str))
|
||||
@@ -263,7 +264,7 @@ const template = {
|
||||
<td class="indicator">{idx == index ? ">" : ""}</td>
|
||||
<td>{Math.abs(idx - index)}</td>
|
||||
<td style="width: 250px; max-width: 500px; overflow: hidden;">{val.title}</td>
|
||||
<td><a href="#" highlight="URL jump-list">{val.URI.spec}</a></td>
|
||||
<td><a href={val.URI.spec} highlight="URL jump-list">{val.URI.spec}</a></td>
|
||||
</tr>)
|
||||
}
|
||||
</table>);
|
||||
|
||||
Reference in New Issue
Block a user