From 99264f3d241d7259214ddd943e86fcafa010fdbe Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Mon, 19 Oct 2026 09:15:16 +0300 Subject: [PATCH] Search board: number every continuation, not only the first nine Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + apps/desktop/src/board_search.rs | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0578430..07b1b45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https taken from a variation; average rating of a continuation only from games with both ratings. - Narrow windows: the [Filters | Board] switch stays visible, conditions that do not fit become "+N more", columns hide by priority and the date becomes the year. +- Continuations are numbered through the whole list (keys 1-9 still play the first nine). - Ctrl+Shift+Backspace clears all conditions with the position; a × removes the position in small databases; the cache of search results is bounded. diff --git a/apps/desktop/src/board_search.rs b/apps/desktop/src/board_search.rs index a7ed77d..9ce519f 100644 --- a/apps/desktop/src/board_search.rs +++ b/apps/desktop/src/board_search.rs @@ -690,15 +690,14 @@ fn continuation_row( ui.painter() .text(egui::pos2(x, y), align, s, font.clone(), color); }; - if i < 9 { - text( - x, - &(i + 1).to_string(), - visuals.weak_text_color(), - egui::Align2::LEFT_CENTER, - ); - } - x += 16.0; + // Every row is numbered; 1-9 also play the move. + text( + x + 18.0, + &(i + 1).to_string(), + visuals.weak_text_color(), + egui::Align2::RIGHT_CENTER, + ); + x += 26.0; let label = stat .uci .to_move(pos)