Skip to content

eXtract: remembers the query, drops grey chrome, +ignore_spans - #74

Merged
netj merged 4 commits into
mainfrom
extract-preserves-filter
Nov 11, 2026
Merged

netj merged 4 commits into
mainfrom
extract-preserves-filter

Conversation

@netj

@netj netj commented Nov 11, 2026

Copy link
Copy Markdown
Owner

What

  • Opens on the query you left, with the cursor on the item you last picked. Leaving with Esc or C-c counts, and an emptied query stays empty. The query it opens on is kept even if it matches nothing (C-u clears it); a query recalled with M-p that matches nothing is still skipped.
  • Plain grey spans are not listed (mid greys: bright black, 256-color greys, near-equal RGB; not white). Bold, underlined, reversed or highlighted ones stay.
  • +find: +ignore_spans: groups of regexes for chrome that is colored rather than grey (Claude Code's mode line, Jump to bottom, Not logged in, recap:, always-listed / commands). Same group rules as +ignore_files; defaults live in optmux-defaults.yaml, validated in cli.py, read from find.json.
  • Paths, URLs and hashes inside a styled span (a command) are listed as their own options.
  • Multi-line quotes: a "..." or `...` that runs over several lines is one option.
  • Docs: docs/usage-extract.md (remembering, the stoplist, the fzf ! tip: ^! or '!).

Review

An independent review found no crash-level bugs. Fixed: white text was treated as grey, the mode-line pattern missed accept edits on (shift+tab to cycle), and C-t shifted the M-p index. Known and accepted: a stray quote character can pair with a later one within 800 characters.

Tests

453 pass (uv run pytest tests).

🤖 Generated with Claude Code

netj and others added 4 commits November 10, 2026 21:03
- Open on the query (and item) you left, even when leaving with Esc or
  an emptied query.
- Plain grey spans (no bold/underline/reverse/background) are not listed.
- +find: +ignore_spans: groups of regexes for known chrome spans (Claude
  Code's mode line, footer hints, slash commands, status lines).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…opening query

- A path, URL or hash inside a styled span (a command) is its own option.
- A "..." or `...` quote that spans lines is one option.
- The query eXtract opens on stays even if it matches nothing.
- +ignore_spans trimmed to what grey-dropping doesn't catch; adds "Jump to bottom".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…he M-p index)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@netj
netj merged commit 2fd3a28 into main Nov 11, 2026
3 checks passed
@netj
netj deleted the extract-preserves-filter branch November 11, 2026 05:30
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