1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 20:15:44 +01:00

add a 'hlsearchstyle' option to allow for match styling and a 'linksearch'

option to restrict page searches to link text
This commit is contained in:
Doug Kearns
2007-09-14 13:38:17 +00:00
parent b7b1aaac0c
commit 57886630c0
4 changed files with 131 additions and 68 deletions

View File

@@ -945,7 +945,9 @@ function Mappings() //{{{
usage: ["/{pattern}[/]<CR>"],
help: "Search forward for the first occurance of <code class=\"argument\">{pattern}</code>.<br/>" +
"When \"\\c\" appears anywhere in the pattern the whole pattern is handled as though <code class=\"option\">'ignorecase'</code> is on. " +
"\"\\C\" forces case-sensitive matching for the whole pattern."
"\"\\C\" forces case-sensitive matching for the whole pattern.<br/>" +
"If \"\\u\" appears in the pattern only the text of links is searched for a match as though <code class=\"option\">'linksearch'</code> is on. " +
"\"\\U\" forces the entire page to be searched for a match."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["?"],
@@ -954,9 +956,11 @@ function Mappings() //{{{
short_help: "Search backwards for a pattern",
usage: ["?{pattern}[?]<CR>"],
help: "Search backward for the first occurance of <code class=\"argument\">{pattern}</code>.<br/>" +
"When '\\c' appears anywhere in the pattern the whole pattern is handled as though <code class=\"option\">'ignorecase'</code> is on. " +
"'\\C' forces case-sensitive matching for the whole pattern.<br/>" +
"NOTE: incremental searching currenly only works in the forward direction."
"When \"\\c\" appears anywhere in the pattern the whole pattern is handled as though <code class=\"option\">'ignorecase'</code> is on. " +
"\"\\C\" forces case-sensitive matching for the whole pattern.<br/>" +
"If \"\\u\" appears in the pattern only the text of links is searched for a match as though <code class=\"option\">'linksearch'</code> is on. " +
"\"\\U\" forces the entire page to be searched for a match.<br/>" +
"NOTE: incremental searching currently only works in the forward direction."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["n"],