mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 21:42:26 +01:00
Fix some :h news issues, document ;A.
This commit is contained in:
@@ -109,6 +109,7 @@
|
||||
<li tag=";V"><em>V</em> to view its destination source in the external editor</li>
|
||||
<li tag=";y"><em>y</em> to yank its destination location</li>
|
||||
<li tag=";Y"><em>Y</em> to yank its text description</li>
|
||||
<li tag=";A"><em>A</em> to yank its anchor URL</li>
|
||||
<li tag=";c"><em>c</em> to open its context menu</li>
|
||||
<li tag=";i"><em>i</em> to open an image</li>
|
||||
<li tag=";I"><em>I</em> to open an image in a new tab.</li>
|
||||
|
||||
@@ -126,7 +126,7 @@ var Help = Module("Help", {
|
||||
| (?: ^ [^\S\n]* \n) +
|
||||
]]>), "gmxy");
|
||||
|
||||
let betas = util.regexp(/\[(b\d)\]/, "gx");
|
||||
let betas = util.regexp(/\[((?:b|rc)\d)\]/, "gx");
|
||||
|
||||
let beta = array(betas.iterate(NEWS))
|
||||
.map(function (m) m[1]).uniq().slice(-1)[0];
|
||||
|
||||
@@ -258,7 +258,7 @@ var Template = Module("Template", {
|
||||
linkifyHelp: function linkifyHelp(str, help) {
|
||||
let re = util.regexp(<![CDATA[
|
||||
(?P<pre> [/\s]|^)
|
||||
(?P<tag> '[\w-]+' | :(?:[\w-]+!?|!) | (?:._)?<[\w-]+>\w* | \b[a-zA-Z]_(?:\w+|.) | \[[\w-]+\] | E\d{3} )
|
||||
(?P<tag> '[\w-]+' | :(?:[\w-]+!?|!) | (?:._)?<[\w-]+>\w* | \b[a-zA-Z]_(?:[\w[\]]+|.) | \[[\w-;]+\] | E\d{3} )
|
||||
(?= [[\)!,:;./\s]|$)
|
||||
]]>, "gx");
|
||||
return this.highlightSubstrings(str, (function () {
|
||||
|
||||
Reference in New Issue
Block a user