Skip to content

eXtract: list a styled span before the patterns inside it - #78

Merged
netj merged 2 commits into
mainfrom
extract-rank-highlights-above-the-patterns-within-them
Nov 14, 2026
Merged

netj merged 2 commits into
mainfrom
extract-rank-highlights-above-the-patterns-within-them

Conversation

@netj

@netj netj commented Nov 14, 2026

Copy link
Copy Markdown
Owner

In spans mode, a file path or URL inside a highlighted span used to sit above the whole span in fzf, so extracting the span meant skipping past each pattern in it. Entries now sort by line, column, then rank, with a span after the patterns inside it, so fzf shows the span first and a pattern is one skip away. Patterns are still listed as their own options.

Known limits (unchanged from before): a pattern crossing two styled runs, or sitting on the second physical line of a wrapped span, can still need more than one skip.

Tests: updated the existing order test; added several patterns in one span, two spans on a line, and repeat handling. An independent review found no correctness bugs.

🤖 Generated with Claude Code

netj and others added 2 commits November 13, 2026 21:46
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@netj
netj merged commit dbfb00d into main Nov 14, 2026
3 checks passed
@netj
netj deleted the extract-rank-highlights-above-the-patterns-within-them branch November 14, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant