diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-17 22:03:07 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-17 22:07:11 +0100 |
commit | 390772358cedc9ed541a27b3cac1f8d97beef0ef (patch) | |
tree | 621e56ad7b1b4957b1ba686a8902381ce270619c /doc | |
parent | e98d0ad1dc51050eb17120f835847d55950c2a0b (diff) | |
download | chawan-390772358cedc9ed541a27b3cac1f8d97beef0ef.tar.gz |
regex: re-work compileSearchRegex
I've gotten tired of not being able to search for forward slashes. Now it works like in vim, and you can also set default ignore case in the config.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/config.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/config.md b/doc/config.md index 361323ee..10074a84 100644 --- a/doc/config.md +++ b/doc/config.md @@ -108,6 +108,16 @@ Following is a list of search options: <td>When set to true, searchNext/searchPrev wraps around the document.</td> </tr> +<tr> +<td>default-flags</td> +<td>Array of JS regex flags</td> +<td>Theoretically, you could use any JS regex flag. Practically, the only values +that work/make sense right now are either `[]` (the default; an empty array) or +`["i"]` (an array with the string "i").<br> +Note: this can also be overridden inline in the search bar (vim-style), with the +escape sequences `\c` (ignore case) and `\C` (strict case).</td> +</tr> + </table> ## Encoding |