1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-29 22:05:46 +01:00

add the 'smartcase' option and support for \c and \C in search patterns

This commit is contained in:
Doug Kearns
2007-09-05 11:32:46 +00:00
parent 62ede9f92e
commit 88749df4bb
5 changed files with 76 additions and 22 deletions

View File

@@ -942,16 +942,20 @@ function Mappings() //{{{
function() { vimperator.search.openSearchDialog(vimperator.modes.SEARCH_FORWARD); },
{
short_help: "Search forward for a pattern",
usage: ["/{pattern}<CR>"],
help: "Search forward for the first occurance of <code class=\"argument\">{pattern}</code>."
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."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["?"],
function() { vimperator.search.openSearchDialog(vimperator.modes.SEARCH_BACKWARD); },
{
short_help: "Search backwards for a pattern",
usage: ["?{pattern}<CR>"],
help: "Search backward for the first occurance of <code class=\"argument\">{pattern}</code>."
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."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["n"],