Add some documentation on how to get regexes in the hints kitten to match over multiple lines.

This commit is contained in:
Kovid Goyal 2019-07-03 10:45:37 +05:30
parent 406891abcc
commit 2719926870
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -350,7 +350,9 @@ def run(args, text):
The regular expression to use when :option:`kitty +kitten hints --type`=regex.
If you specify a group in the regular expression only the group
will be matched. This allow you to match text ignoring a prefix/suffix, as
needed. The default expression matches lines.
needed. The default expression matches lines. To match text over
multiple lines you should prefix the regular expression with :code:`(?ms)`,
which turns on MULTILINE and DOTALL modes for the regex engine.
--url-prefixes