Route Find to AvaloniaEdit's search panel on editor windows - #258
Route Find to AvaloniaEdit's search panel on editor windows#258simtel12 wants to merge 2 commits into
Conversation
Cmd+F (or the dock menu's Find…) on an AvaloniaEdit-backed game window now opens AvaloniaEdit's own search panel instead of the plain in-window Find bar, giving live match highlighting and regex/case/ whole-word toggles. FindInWindowModel gains an OpenOverride hook so a renderer can claim Find while it's attached; GameTextEditor wires it to the SearchPanel and releases it on detach. Ctrl+F still opens the in-window bar everywhere, and non-editor windows are unaffected. Also fixes the posture/status chip strip collapsing (and reflowing the window) when every chip is hidden, by pinning it to one chip's height with MinHeight.
|
Switching back to draft as I want to test it on both Mac and Windows before review. |
Unrelated to Find — extracted to gleach/posture-chip-strip-minheight (PR GenieClient#259).
|
Status: reviewed while in draft — no blockers, but one behaviour note to settle before it comes out of draft. Re-checked against current The design reads well. Putting The one thing worth settling: on Windows and Linux this changes Ctrl+F, not just Cmd+F.
The code comment says this plainly, so it looks intentional, but the PR summary says "Ctrl+F still opens the in-window bar everywhere", which only holds on macOS. Two ways to reconcile:
Either is defensible; option 1 with a note is probably the honest one. If it lands as-is, the two macro guards should collapse into one — Smaller notes:
No rush from this side — take the Mac and Windows passes you wanted. |
Summary
FindInWindowModelgains anOpenOverridehook so a renderer can claim Find while it's attached;GameTextEditorwires it to theSearchPaneland releases the claim on detach.Test plan