1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:02: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 });
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"); },
{ flags: liberator.Mappings.flags.COUNT });
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"); },
{ flags: liberator.Mappings.flags.COUNT });
@@ -1073,7 +1073,9 @@ liberator.Buffer = function () //{{{
highlight: function (key, style)
{
liberator.log("key: " + key + ", style: " + style);
let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/);
liberator.log("class: " + class + ", selectors: " + selectors);
if (highlightClasses.indexOf(class) == -1)
{
@@ -1083,6 +1085,7 @@ liberator.Buffer = function () //{{{
let getCSS = function (style) ".hl-" + class + selectors + " { " + style.replace(/;|;?$/g, "!important;") + " }";
let css = getCSS(style);
liberator.log("css: " + css);
if (highlight.get(key))
styles.removeSheet(highlightDocs, getCSS(highlight.get(key)), true);

View File

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

View File

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