Search bar: find text across the document and step through matches #27
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Request
A search bar for finding a word such as "bitwarden" that may appear several times in the document.
Proposed behaviour (to confirm)
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.
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.
Search shipped in
2275889and reworked inc51d289(Ver 261124I): a toolbar Search button swaps the toolbar for the search controls; Cancel restores it. Pushed to origin/master. Closing.