macos: hook up the next/prev search buttons
parent
15f00a9cd1
commit
3ce19a02ba
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue