Skip to content

Highlight same-value cells in the focused column - #33

Merged
pavi2410 merged 5 commits into
mainfrom
cursor/same-value-highlight-f175
Oct 3, 2026
Merged

pavi2410 merged 5 commits into
mainfrom
cursor/same-value-highlight-f175

Conversation

@pavi2410

@pavi2410 pavi2410 commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Closes #26.

What

Selecting a cell in a result grid washes other cells in that same column with the same value, including the focused cell. Settings → Query defaults → Table interaction has a Highlight same values switch. It is stored in native_preferences.toml with the other table prefs.

Look

The wash covers the full cell bounds (not a text chip, not an inset). Color is warm gray #57524f at 1/3 opacity over the row background so zebra striping still shows. The focused cell gets the same wash; the blue selection ring is drawn on top.

Every render_td is pinned to the kit cell with absolute().inset_0() so the wash uses the cell box, not the glyph box. Kit table_cell_size padding is restored on an inner box, so matching labels keep the same left inset as unmatched labels.

Behavior

  • Trigger is the focused/selected cell (click or keyboard), not hover and not always-on.
  • Only the focused column is scanned.
  • Empty and NULL never match.

Default is on, same as the other table-interaction switches.

Open in Web Open in Cursor 

Focus a result-grid cell to highlight other cells in that column with
the same value. Empty and NULL are ignored. The choice persists with
the other table interaction prefs.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
@cursor
cursor Bot force-pushed the cursor/same-value-highlight-f175 branch from 925d7ac to 6392068 Compare October 3, 2026 20:34
cursoragent and others added 4 commits October 3, 2026 20:46
Fill the table cell bounds with #57524f at 1/3 opacity so zebra
rows still show through, instead of a full-strength chip around
the text. Selection ring stays on top.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
render_td was shrink-wrapping to cell_chrome, so both the wash and
gpui-kit's absolute selection ring followed the glyph box. Use the
same in-flow flex_1/min_w_0/size_full fill as column headers.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
Pin every td to the kit cell with absolute inset_0 so the wash
covers the cell, restore table_cell_size on an inner box so
labels keep their inset, and wash the focused cell too. The
kit selection ring stays on top.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
@pavi2410
pavi2410 marked this pull request as ready for review October 3, 2026 21:28
@pavi2410
pavi2410 merged commit 3e9fae6 into main Oct 3, 2026
2 checks passed
@pavi2410
pavi2410 deleted the cursor/same-value-highlight-f175 branch October 3, 2026 21:28
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.

Highlight cells with same values

2 participants