Skip to content

docs(test): correct switch_picker comments about skim's on-screen counters - #2733

Merged
max-sixty merged 1 commit into
mainfrom
debug-picker-preview-flake
May 12, 2026
Merged

max-sixty merged 1 commit into
mainfrom
debug-picker-preview-flake

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Two comment-only fixes following #2729 — no behavioral change, no snapshot change.

  • is_skim_ready no longer claims skim "displays item count like 1/3"; the picker uses no_info(true), so it doesn't render that.
  • The snapshot filter that normalizes the trailing N/M on the preview pane's first line now correctly attributes it to skim's previewer vertical-scroll indicator ({vscroll_offset}/{content.len()}, drawn in reverse video at the right edge — see skim::previewer::Previewer::draw), rather than the matcher's matched/total counter. The earlier comment's misattribution is what led test(switch_picker): gate stability on matcher/display consistency #2345's stability check to parse the wrong thing; fix(test): gate switch_picker stability on matcher row count, not preview vscroll #2729 fixed the check, this fixes the comment so the misunderstanding doesn't resurface. The filter regex and replacement string are untouched.

…nters

Two comment-only fixes following #2729:

- `is_skim_ready` no longer claims skim "displays item count like 1/3" —
  the picker uses `no_info(true)`, so it doesn't.
- The snapshot filter that normalizes the trailing `N/M` on the preview
  pane's first line now correctly attributes it to skim's previewer
  vertical-scroll indicator (`{vscroll_offset}/{content.len()}`, reverse
  video, right-aligned), not the matcher's matched/total counter. The
  filter itself is unchanged.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit c73098b into main May 12, 2026
33 checks passed
@max-sixty
max-sixty deleted the debug-picker-preview-flake branch May 12, 2026 01:45
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.

2 participants