1. 10 8月, 2022 1 次提交
  2. 22 11月, 2021 1 次提交
  3. 22 7月, 2021 1 次提交
    • D
      doc: add -F/--fixed-strings to "common options" · 9b01a8f9
      Dash 提交于
      #607 is the top result for the search "ripgrep disable regex". I think
      it makes sense to add it to the user guide, since it's a very useful
      flag.
      
      PR #1945 
      9b01a8f9
  4. 15 6月, 2021 1 次提交
  5. 01 6月, 2021 1 次提交
  6. 22 9月, 2020 1 次提交
  7. 09 5月, 2020 2 次提交
  8. 18 2月, 2020 1 次提交
  9. 21 1月, 2020 1 次提交
  10. 01 6月, 2019 1 次提交
  11. 15 4月, 2019 3 次提交
    • A
      ripgrep: max-column-preview --> max-columns-preview · ef1611b5
      Andrew Gallant 提交于
      Credit to @okdana for catching this. This naming is a bit more
      consistent with the existing --max-columns flag.
      ef1611b5
    • A
      printer: support previews for long lines · ece1f50c
      Andrew Gallant 提交于
      This commit adds support for showing a preview of long lines. While the
      default still remains as completely suppressing the entire line, this
      new functionality will show the first N graphemes of a matching line,
      including the number of matches that are suppressed.
      
      This was unfortunately a fairly invasive change to the printer that
      required a bit of refactoring. On the bright side, the single line
      and multi-line coloring are now more unified than they were before.
      
      Closes #1078
      ece1f50c
    • A
      binary: rejigger ripgrep's handling of binary files · a7d26c8f
      Andrew Gallant 提交于
      This commit attempts to surface binary filtering in a slightly more
      user friendly way. Namely, before, ripgrep would silently stop
      searching a file if it detected a NUL byte, even if it had previously
      printed a match. This can lead to the user quite reasonably assuming
      that there are no more matches, since a partial search is fairly
      unintuitive. (ripgrep has this behavior by default because it really
      wants to NOT search binary files at all, just like it doesn't search
      gitignored or hidden files.)
      
      With this commit, if a match has already been printed and ripgrep detects
      a NUL byte, then it will print a warning message indicating that the search
      stopped prematurely.
      
      Moreover, this commit adds a new flag, --binary, which causes ripgrep to
      stop filtering binary files, but in a way that still avoids dumping
      binary data into terminals. That is, the --binary flag makes ripgrep
      behave more like grep's default behavior.
      
      For files explicitly specified in a search, e.g., `rg foo some-file`,
      then no binary filtering is applied (just like no gitignore and no
      hidden file filtering is applied). Instead, ripgrep behaves as if you
      gave the --binary flag for all explicitly given files.
      
      This was a fairly invasive change, and potentially increases the UX
      complexity of ripgrep around binary files. (Before, there were two
      binary modes, where as now there are three.) However, ripgrep is now a
      bit louder with warning messages when binary file detection might
      otherwise be hiding potential matches, so hopefully this is a net
      improvement.
      
      Finally, the `-uuu` convenience now maps to `--no-ignore --hidden
      --binary`, since this is closer to the actualy intent of the
      `--unrestricted` flag, i.e., to reduce ripgrep's smart filtering. As a
      consequence, `rg -uuu foo` should now search roughly the same number of
      bytes as `grep -r foo`, and `rg -uuua foo` should search roughly the
      same number of bytes as `grep -ra foo`. (The "roughly" weasel word is
      used because grep's and ripgrep's binary file detection might differ
      somewhat---perhaps based on buffer sizes---which can impact exactly what
      is and isn't searched.)
      
      See the numerous tests in tests/binary.rs for intended behavior.
      
      Fixes #306, Fixes #855
      a7d26c8f
  12. 06 4月, 2019 2 次提交
    • L
      searcher: add option to disable BOM sniffing · 5962abc4
      lesnyrumcajs 提交于
      This commit adds a new encoding feature where the -E/--encoding flag
      will now accept a value of 'none'. When given this value, all encoding
      related machinery is disabled and ripgrep will search the raw bytes of
      the file, including the BOM if it's present.
      
      Closes #1207, Closes #1208
      5962abc4
    • A
      config: switch to using bstrs · 9b8f5cba
      Andrew Gallant 提交于
      This lets us implement correct Unicode trimming and also simplifies the
      parsing logic a bit. This also removes the last platform specific bits of
      code in ripgrep core.
      9b8f5cba
  13. 27 1月, 2019 2 次提交
  14. 23 1月, 2019 1 次提交
    • D
      ripgrep: add --ignore-file-case-insensitive · 718a00f6
      David Torosyan 提交于
      The --ignore-file-case-insensitive flag causes all
      .gitignore/.rgignore/.ignore files to have their globs matched without
      regard for case. Because this introduces a potentially significant
      performance regression, this is always disabled by default. Users that
      need case insensitive matching can enable it on a case by case basis.
      
      Closes #1164, Closes #1170
      718a00f6
  15. 31 8月, 2018 1 次提交
  16. 25 5月, 2018 1 次提交
  17. 21 2月, 2018 1 次提交
    • A
      doc: clarify failure mode · 8c800ada
      Andrew Gallant 提交于
      This adds a hint for end users that run into a common failure mode where
      ripgrep won't search any files because they have a `*` rule in their
      `$HOME/.gitignore`.
      
      Fixes #815
      8c800ada
  18. 11 2月, 2018 1 次提交
    • A
      doc: overhaul documentation · 904c75bd
      Andrew Gallant 提交于
      This commit cleans up the README and splits portions of it out into
      a user guide (GUIDE.md) and a FAQ (FAQ.md). The README now provides a
      small list of documentation "quick" links to various parts of the docs.
      
      This commit also does a few other minor touchups.
      904c75bd