Tween: Fish function for outputting ranges of text

111 · Brett Terpstra · Jan. 22, 2026, 5:41 p.m.
Summary
This blog post introduces a Fish function called 'tween', which effectively extracts specified ranges of lines from files or STDIN input using various methods such as line numbers, string matching, and regex patterns. It provides a detailed guide on usage, including examples for handling multiple ranges, relative offsets, and integration with syntax highlighting using the bat utility.