mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 03:27:55 +03:00
Add some documentation on how to get regexes in the hints kitten to match over multiple lines.
This commit is contained in:
parent
406891abcc
commit
2719926870
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user