Add presets: file:line:col, hex, mdlink, hostport, jwt, ... #6
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#6
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 presets for the pick targets that come up as often as the current seven, keeping the
"permissive, best-effort, human-then-picks" dialect
src/preset.rsdocuments.Current list:
url, email, ipv4, ipv6, path, sha, uuid.Candidates
file:line[:col]—src/main.rs:140:5. The one that pairs with an action:--preset filepos --action '$EDITOR +{}'-ish. Compiler, linter, grep and test output all emit it.hex—#rrggbb/#rgbcolours.mdlink— markdown[text](url), with--capturereaching the URL.hostport—host:port, for logs andss/docker psoutput.jwt— three base64url runs separated by dots.k8s— pod/deployment-style names fromkubectl getoutput.number— bare integers; thumbs has it and it is occasionally what you want.Notes
PRESETSplus its test; the cost is in choosing a dialect that is wide enough to be useful andnarrow enough not to swamp the screen with labels.
PRESETSis the overlap tie-break order (earlier wins), so a new entry's placement isa decision, not a formality — e.g.
fileposmust come beforepath, orpatheats its prefix.