1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:07:59 +01:00

add ]n and ]p mappings for navigating document relationships defined by the

'nextpattern' and 'previouspattern' options - thanks kidd
This commit is contained in:
Doug Kearns
2007-11-15 02:43:13 +00:00
parent 20e176ee01
commit 5b8d9a05e1
5 changed files with 73 additions and 3 deletions

View File

@@ -768,6 +768,22 @@ vimperator.Options = function () //{{{
validator: function (value) { return /^(sort|)$/.test(value); }
}
));
this.add(new vimperator.Option(["nextpattern"], "stringlist",
{
short_help: "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<br/>" +
"This value is case insensitive",
default_value: "\\bnext,^>$"
}
));
this.add(new vimperator.Option(["previouspattern"], "stringlist",
{
short_help: "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<br/>" +
"This value is case insensitive",
default_value: "\\bprev,previous\\b,^<$"
}
));
//}}}
// we start with an "empty" GUI so that no toolbars or tabbar is shown if the user