Search bar: find text across the document and step through matches #27

Closed
opened 2026-11-24 19:24:32 +00:00 by eric · 3 comments
Owner

Request

A search bar for finding a word such as "bitwarden" that may appear several times in the document.

  • Search box on the left, buttons on the right: Search, Cancel, plus forward and backward buttons.
  • Case-insensitive.
  • Tab and Shift+Tab step forward and backward through the places found, as do the forward/backward buttons.
  • If nothing is found, nothing is highlighted and Tab does not step (it behaves normally).

Proposed behaviour (to confirm)

  • Searches the whole document, jumping to the section (and sub-tab, and unfolding a collapsed record) that holds each match, highlighting every match in view and the current one more strongly.
  • Secret values are never searched or revealed; labels, notes, step text and titles are.
  • Available in view mode; Edit hides it.
  • Tab/Shift+Tab step through matches only while the cursor is in the search box and there are matches. Cancel clears the search and releases Tab.
## Request A search bar for finding a word such as "bitwarden" that may appear several times in the document. - Search box on the left, buttons on the right: **Search**, **Cancel**, plus forward and backward buttons. - Case-insensitive. - Tab and Shift+Tab step forward and backward through the places found, as do the forward/backward buttons. - If nothing is found, nothing is highlighted and Tab does not step (it behaves normally). ## Proposed behaviour (to confirm) - Searches the whole document, jumping to the section (and sub-tab, and unfolding a collapsed record) that holds each match, highlighting every match in view and the current one more strongly. - Secret values are never searched or revealed; labels, notes, step text and titles are. - Available in view mode; Edit hides it. - Tab/Shift+Tab step through matches only while the cursor is in the search box and there are matches. Cancel clears the search and releases Tab.
Author
Owner

Implemented (local, not pushed). Search bar under the toolbar: box left; Search, Previous, Next, Cancel right. Case-insensitive across the whole document; Tab/Shift+Tab (cursor in the box), the buttons and Enter step through matches, wrapping, jumping to the section and sub-tab and unfolding folded records. Not found shows no highlights and Tab behaves normally. Secret values are never searched or revealed. Edit hides the bar. Unit tests pass (75). Headless Chromium run with real key events: 24 checks including cross-section and cross-tab stepping, wrap-around, secret not found, Tab not trapped on a miss, Cancel, Edit. One addition beyond the request: a small "Not found" / "2 of 6" note beside the buttons.

Implemented (local, not pushed). Search bar under the toolbar: box left; Search, Previous, Next, Cancel right. Case-insensitive across the whole document; Tab/Shift+Tab (cursor in the box), the buttons and Enter step through matches, wrapping, jumping to the section and sub-tab and unfolding folded records. Not found shows no highlights and Tab behaves normally. Secret values are never searched or revealed. Edit hides the bar. Unit tests pass (75). Headless Chromium run with real key events: 24 checks including cross-section and cross-tab stepping, wrap-around, secret not found, Tab not trapped on a miss, Cancel, Edit. One addition beyond the request: a small "Not found" / "2 of 6" note beside the buttons.
Author
Owner

Reworked per feedback (local, not pushed): the permanent search row is gone. A Search button sits in the toolbar; clicking it replaces the toolbar buttons, in the same row and at the same height, with the search box (left) and Search / Previous / Next / Cancel (right). Cancel removes them and restores the original buttons, with focus back on Search. All matching behaviour is unchanged. Headless Chromium: 33 checks pass against the new build.

Reworked per feedback (local, not pushed): the permanent search row is gone. A Search button sits in the toolbar; clicking it replaces the toolbar buttons, in the same row and at the same height, with the search box (left) and Search / Previous / Next / Cancel (right). Cancel removes them and restores the original buttons, with focus back on Search. All matching behaviour is unchanged. Headless Chromium: 33 checks pass against the new build.
Author
Owner

Search shipped in 2275889 and reworked in c51d289 (Ver 261124I): a toolbar Search button swaps the toolbar for the search controls; Cancel restores it. Pushed to origin/master. Closing.

Search shipped in 2275889 and reworked in c51d289 (Ver 261124I): a toolbar Search button swaps the toolbar for the search controls; Cancel restores it. Pushed to origin/master. Closing.
eric closed this issue 2026-11-24 19:38:05 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eric/final-wishes#27
No description provided.