Add --min-len to drop trivially short matches #10
Labels
No labels
bug
design
docs
enhancement
good-first-issue
packaging
rendering
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/spoor#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add
--min-len N: drop matches shorter thanNdisplay columns.Why
A loose pattern is the intended dialect for presets ("permissive and best-effort … the goal is to
surface candidates a human then picks from",
src/preset.rs), and the cost of that choice is theoccasional screenful of two-character matches which are never what you wanted —
--preset shaona hex dump,
--preset pathon a log full ofa/b.kitty's hints guards this way (
docs/research.md: "non-empty + min-len 3") and it is the cheapestknob that makes a wide pattern usable without making the pattern itself stricter.
Notes
remain.
spooris column-based.matcher::find_in_logical_row, which is mandatory andalready there; this is a user knob on top.