Commit Graph
3 Commits
Author SHA1 Message Date
LeoVasanko 788d285e38 Let --context expand any selection past its range, drawing from the whole file 2026-09-28 04:46:08 +00:00
LeoVasanko c2821dedb5 Dump the state after the last printed record for all -r/--grep/--context filters 2026-09-28 04:36:41 +00:00
LeoVasanko b8d2222905 Repeatable -r: plain numbers slice filtered output, unit windows intersect; add --context
-r is now repeatable and restrictive: unit specs (l/s/v/r) intersect
their database line windows, while plain-number specs index into the
filtered output items left after unit windows and --grep, acting as a
pure display filter (negatives from the end, single index errors with
exit 2, ranges truncate).  --context N (default 0) then expands each
surviving item GNU grep-style by N surrounding in-window records, free
of the grep/plain filters, merging overlaps.
2026-09-28 01:05:12 +00:00