by Jehops · 5y ago · 0 comments
Is this documented? RG(1) only says
-m, --max-count <NUM>
Limit the number of matching lines per files searched to NUM.
Is this a different option or is there an implied <NUM> that prevents 'rg -U ^' from searching from the beginning of the file?ripgrep also has a -U/--multiline flag, but it's orthogonal to the regex mode called multiline. It's an unfortunate naming clash, but they are names in otherwise distinct namespaces.
ripgrep always enables the regex flag 'm', regardless of whether -U/--multiline is enabled or not.