1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 17:42:27 +01:00

normalize the descriptions fo ]] and [[

This commit is contained in:
Doug Kearns
2008-10-06 07:37:27 +00:00
parent 5ec80e0468
commit e38798f66c
3 changed files with 13 additions and 10 deletions

View File

@@ -491,12 +491,12 @@ liberator.Buffer = function () //{{{
{ flags: liberator.Mappings.flags.COUNT }); { flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["]]"], liberator.mappings.add(modes, ["]]"],
"Follow a link labeled to 'next' or '>' if it exists", "Follow the link labeled 'next' or '>' if it exists",
function (count) { liberator.buffer.followDocumentRelationship("next"); }, function (count) { liberator.buffer.followDocumentRelationship("next"); },
{ flags: liberator.Mappings.flags.COUNT }); { flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["[["], liberator.mappings.add(modes, ["[["],
"Follow a link labeled to 'prev', 'previous' or '<' if it exists", "Follow the link labeled 'prev', 'previous' or '<' if it exists",
function (count) { liberator.buffer.followDocumentRelationship("previous"); }, function (count) { liberator.buffer.followDocumentRelationship("previous"); },
{ flags: liberator.Mappings.flags.COUNT }); { flags: liberator.Mappings.flags.COUNT });
@@ -1073,7 +1073,9 @@ liberator.Buffer = function () //{{{
highlight: function (key, style) highlight: function (key, style)
{ {
liberator.log("key: " + key + ", style: " + style);
let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/); let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/);
liberator.log("class: " + class + ", selectors: " + selectors);
if (highlightClasses.indexOf(class) == -1) if (highlightClasses.indexOf(class) == -1)
{ {
@@ -1083,6 +1085,7 @@ liberator.Buffer = function () //{{{
let getCSS = function (style) ".hl-" + class + selectors + " { " + style.replace(/;|;?$/g, "!important;") + " }"; let getCSS = function (style) ".hl-" + class + selectors + " { " + style.replace(/;|;?$/g, "!important;") + " }";
let css = getCSS(style); let css = getCSS(style);
liberator.log("css: " + css);
if (highlight.get(key)) if (highlight.get(key))
styles.removeSheet(highlightDocs, getCSS(highlight.get(key)), true); styles.removeSheet(highlightDocs, getCSS(highlight.get(key)), true);

View File

@@ -193,18 +193,18 @@ ________________________________________________________________________________
|]]| + |]]| +
||[count]]]|| ||[count]]]||
________________________________________________________________________________ ________________________________________________________________________________
Open link labeled with "next" or ">". Useful when browsing forums or Follow the link labeled \'next' or \'>' if it exists. Useful when browsing
documentation. Change 'nextpattern' to modify its behavior. It follows forums or documentation. Change 'nextpattern' to modify its behavior. It
relations between files too. follows relations between files too.
________________________________________________________________________________ ________________________________________________________________________________
|[[| + |[[| +
||[count][[|| ||[count][[||
________________________________________________________________________________ ________________________________________________________________________________
Open link labeled with "prev", "previous" or "<". Useful when browsing forums Follow the link labeled \'prev', \'previous' or \'<' if it exists. Useful when
or documentation. Change 'previouspattern' to modify its behavior. It follows browsing forums or documentation. Change 'previouspattern' to modify its
relations between files too. behavior. It follows relations between files too.
________________________________________________________________________________ ________________________________________________________________________________
section:Zooming[zooming] section:Zooming[zooming]

View File

@@ -82,8 +82,8 @@ section:Normal{nbsp}mode[normal-index]
||]f|| Focus next frame + ||]f|| Focus next frame +
||[f|| Focus previous frame + ||[f|| Focus previous frame +
||]]|| Follow a link labeled to 'next' or '>' if it exists + ||]]|| Follow the link labeled \'next' or \'>' if it exists +
||[[|| Follow a link labeled to 'prev', 'previous' or '<' if it exists + ||[[|| Follow the link labeled \'prev', \'previous' or \'<' if it exists +
||g$|| Go to the last tab + ||g$|| Go to the last tab +
||g0|| Go to the first tab + ||g0|| Go to the first tab +