ripgrepy
ripgrepy copied to clipboard
python module for ripgrep
`ripgrep --json` results may contain characters that are [considered newlines](https://docs.python.org/3/library/stdtypes.html#str.splitlines) by `str.splitlines`, because it only treats `\n` or `\r\n` as newlines ([this file](https://github.com/ClickHouse/ClickHouse/blob/6567aeda6c63a911a3bf2b3e515782ab9fbc9a60/tests/queries/0_stateless/01666_blns_long.reference) is an example where that happens). `ripgrep`'s...
Fix issue #13 and emptying the pattern when using `files()`, and by preventing adding empty the patterns and path to the command. This also fixes the options `type_list()` and `regexp(pattern)`,...
Add RipGrepOut.files_list as and utility result converter for when using the files...() (or count...()) options. Could be considered as suger, basically equivalent to `self.as_string.split("\n")[:-1]`, but with error handling and support...
**Describe the bug** The option --riles (`rg.files()`) does not work because a pattern is always sent to ripgrep. From the ripgrep usage, the --files option must be used without a...