macos: hook up the next/prev search buttons

pull/9709/head
Mitchell Hashimoto 2025-11-25 15:33:33 -08:00
parent 15f00a9cd1
commit 3ce19a02ba
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 10 additions and 2 deletions

View File

@ -416,12 +416,20 @@ extension Ghostty {
Ghostty.moveFocus(to: surfaceView) Ghostty.moveFocus(to: surfaceView)
} }
Button(action: {}) { Button(action: {
guard let surface = surfaceView.surface else { return }
let action = "navigate_search:next"
ghostty_surface_binding_action(surface, action, UInt(action.count))
}) {
Image(systemName: "chevron.up") Image(systemName: "chevron.up")
} }
.buttonStyle(.borderless) .buttonStyle(.borderless)
Button(action: {}) { Button(action: {
guard let surface = surfaceView.surface else { return }
let action = "navigate_search:previous"
ghostty_surface_binding_action(surface, action, UInt(action.count))
}) {
Image(systemName: "chevron.down") Image(systemName: "chevron.down")
} }
.buttonStyle(.borderless) .buttonStyle(.borderless)