aboutsummaryrefslogtreecommitdiff
path: root/src/grab.c
Commit message (Collapse)AuthorAgeFilesLines
* Change v and y to G and XThomas Voss 2024-01-221-5/+5
|
* Vastly simplify position trackingv1.2.0Thomas Voss 2024-01-211-34/+14
|
* Move common code out into islbrk()Thomas Voss 2024-01-211-8/+14
|
* Formatting fixThomas Voss 2024-01-211-2/+1
|
* Slight refactorThomas Voss 2024-01-211-3/+2
|
* Prefer nullptr to NULLThomas Voss 2024-01-211-1/+1
|
* Support line- & column-based match locationsThomas Voss 2024-01-211-12/+81
|
* Reorganize output writingThomas Voss 2024-01-211-21/+33
|
* Only highlight matches when cflag is setThomas Voss 2024-01-211-1/+1
|
* Print byte-offsets into filesThomas Voss 2024-01-211-6/+27
|
* Remove the ‘struct chars’ typeThomas Voss 2024-01-201-6/+4
|
* Rename occurances of ‘pm’ to ‘rm’Thomas Voss 2024-01-201-24/+24
| | | | ‘regex match’ makes more sense than ‘pattern match’
* Improve handling of the regmatch_t arg to putm()Thomas Voss 2024-01-201-16/+15
|
* Add more color highlightingThomas Voss 2024-01-201-10/+28
|
* Add the -s/--strip-newline flagThomas Voss 2024-01-201-13/+21
|
* Remove semicolons from macro definitionsThomas Voss 2024-01-181-2/+2
|
* Fix typoThomas Voss 2024-01-181-1/+1
|
* Compile with REG_DOTALL when -n is not providedThomas Voss 2024-01-181-4/+4
|
* Add support for UTF-8 and UnicodeThomas Voss 2024-01-181-15/+28
|
* Increase emsg buffer sizeThomas Voss 2024-01-181-1/+1
| | | | | 128 should be enough, but the PCRE grep implementation by the grep developers use 256, so that might be a safer bet.
* Decrease macro usageThomas Voss 2024-01-181-4/+4
|
* Terminate the longopts in grab.c with a null rowThomas Voss 2024-01-181-0/+1
|
* Simplify code using libcompatThomas Voss 2024-01-181-5/+1
|
* Remove manual escape handlingThomas Voss 2024-01-181-17/+0
| | | | This is all handled for us by the PCRE2 library
* Wrap -f/--filenames in ‘#if GIT_GRAB’Thomas Voss 2024-01-181-0/+2
|
* Add optional PCRE supportThomas Voss 2024-01-181-5/+9
|
* Grab the latest version of da.hThomas Voss 2024-01-171-2/+2
|
* Switch colors to use GRAB_COLORS in GREP_COLORS-styleThomas Voss 2024-01-161-9/+61
|
* Add -c to force colored outputThomas Voss 2024-01-161-6/+10
|
* Close fds[FD_W] after dup2()Thomas Voss 2024-01-141-0/+1
|
* Organize files into directoriesThomas Voss 2024-01-131-0/+492