diff --git a/content/buffer.js b/content/buffer.js index 80ea6706..e930634c 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -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); diff --git a/locale/en-US/buffer.txt b/locale/en-US/buffer.txt index d5fb2358..cc3d7b03 100644 --- a/locale/en-US/buffer.txt +++ b/locale/en-US/buffer.txt @@ -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] diff --git a/locale/en-US/index.txt b/locale/en-US/index.txt index df57addf..d194db96 100644 --- a/locale/en-US/index.txt +++ b/locale/en-US/index.txt @@ -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 +