Nimgrep improvements 2 (#15612)

* nimgrep: speed up by threads and Channels
* nimgrep: add --bin, --text, --count options
* nimgrep: add --sortTime option
* allow Peg in all matches
including --includeFile, --excludeFile, --excludeDir

* add --match and --noMatch options
* add --includeDir option
* add --limit (-m) and --onlyAscii (-o) options
* fix performance regression

introduced in nimgrep improvements #12779

* better error handling
* add option --fit
* fix groups in --replace
* fix flushing, --replace, improve --count
* use "." as the default directory, not full path
* fix --fit for Windows
* force target to C for macosx
* validate non-negative int input for options #15318
* switch nimgrep to using --gc:orc
* address review: implement cropping in matches,...
* implement stdin/pipe & revise --help
* address stylistic review & add limitations
This commit is contained in:
Andrey Makarov 2020-11-09 11:19:06 +03:00 • committed by GitHub
commit 5db181f377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1055 additions and 303 deletions

File diff suppressed because it is too large Load diff