Rich text / foldkit-mixins-richtext

findReplace

function · packages/mixins-richtext/src/find.ts:54

function findReplace<Message>(): SlotView.SlotView<
  typeof FindReplaceSlots,
  FindReplaceInput<Message>,
  Message
>

The bar as a slot view. Enter in the find field goes to the next match and Shift+Enter to the previous one; Escape in either field closes it. Replace replaces the current match and Replace all every one; both are disabled with no match. Each button carries data-find.