diff --git a/content/options.js b/content/options.js index f45ec960..e419c922 100644 --- a/content/options.js +++ b/content/options.js @@ -601,6 +601,14 @@ vimperator.Options = function () //{{{ defaultValue: true } )); + optionManager.add(new vimperator.Option(["nextpattern"], "stringlist", + { + shortHelp: "Patterns to use when guessing the 'next' page in a document sequence", + help: "Each pattern, in order, is matched against all links in the page with the first match being used.
" + + "The patterns are case insensitive.", + defaultValue: "\\bnext,^>$" + } + )); optionManager.add(new vimperator.Option(["pageinfo", "pa"], "charlist", { shortHelp: "Desired info on :pa[geinfo]", @@ -650,6 +658,14 @@ vimperator.Options = function () //{{{ validator: function (value) { return (value >= 1 && value <= 50); } } )); + optionManager.add(new vimperator.Option(["previouspattern"], "stringlist", + { + shortHelp: "Patterns to use when guessing the 'previous' page in a document sequence", + help: "Each pattern, in order, is matched against all links in the page with the first match being used.
" + + "The patterns are case insensitive.", + defaultValue: "\\bprev,previous\\b,^<$" + } + )); optionManager.add(new vimperator.Option(["scroll", "scr"], "number", { shortHelp: "Number of lines to scroll with C-u and C-d commands", @@ -772,22 +788,6 @@ vimperator.Options = function () //{{{ validator: function (value) { return /^(sort|)$/.test(value); } } )); - optionManager.add(new vimperator.Option(["nextpattern"], "stringlist", - { - shortHelp: "String to search when looking for 'next' page in document relation", - help: "Change it to make it look for another string in links when pressing ]n
" + - "This value is case insensitive", - defaultValue: "\\bnext,^>$" - } - )); - optionManager.add(new vimperator.Option(["previouspattern"], "stringlist", - { - shortHelp: "String to search when looking for 'prev' page in document relation", - help: "Change it to make it look for another string in links when pressing ]p
" + - "This value is case insensitive", - defaultValue: "\\bprev,previous\\b,^<$" - } - )); //}}} // we start with an "empty" GUI so that no toolbars or tabbar is shown if the user