Skip to content

Commit

Permalink
Add multi line search documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dajva committed Sep 11, 2021
1 parent ce5321a commit d59aad1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/usage.org
Original file line number Diff line number Diff line change
Expand Up @@ -647,3 +647,20 @@
will be kept. So be careful when killing saved searches to avoid
losing important search results.
:END:

* Multi line search
:PROPERTIES:
:CUSTOM_ID: search_management
:END:
By default, ripgrep does matching per line. The =--multiline= flag
can be used for enabling matching over multiple lines. This
flag is available in the [[#the_menu][rg-menu]] as an option. The =--multiline=
flag does not match new line characters with the =.= as one might
expect though. A separate flag is used to allow this,
=--multiline-dotall=. The casual user of multi line search commonly
want this flag on by default so it's recommended to add this to
[[opt:rg-command-line-flags]] to avoid having to trigger this flag
manually from the menu.

See the ripgrep manual page for more info about the multi line
flags.

0 comments on commit d59aad1

Please sign in to comment.