Peek at a capture
peekRetrieve exact lines from a capture or file by handle or path, with line numbers, optional grep search, and range clamping.
Instructions
Return the exact original lines of a capture or a file, byte for byte, with the line numbers they had there. Use it with the handle at the end of a run result, or with any path, to open up a gap that a view left behind. A range reaching past the end is clamped rather than refused, and with no range at all it returns the whole thing. With grep it searches instead: every line matching your pattern comes back with a few lines of context around it, which is the way into a gap when you know the word you want but not the line number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | ||
| grep | No | ||
| last | No | ||
| first | No | ||
| around | No | ||
| handle | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |