mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 17:45:45 +01:00
Add 'Copy File Path' MOW context menu item. Fix some bugs.
This commit is contained in:
@@ -262,12 +262,13 @@ var Template = Module("Template", {
|
||||
|
||||
sourceLink: function (frame) {
|
||||
let url = (frame.filename || "unknown").replace(/.* -> /, "");
|
||||
let path = util.urlPath(url);
|
||||
|
||||
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
|
||||
return <a xmlns:dactyl={NS} dactyl:command="buffer.viewSource"
|
||||
href={url} line={frame.lineNumber}
|
||||
href={url} path={path} line={frame.lineNumber}
|
||||
highlight="URL">{
|
||||
util.urlPath(url) + ":" + frame.lineNumber
|
||||
path + ":" + frame.lineNumber
|
||||
}</a>
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user