macos: add find menu item

This commit is contained in:
Mitchell Hashimoto
2025-11-25 20:20:11 -08:00
parent 949a8ea53f
commit 3f7cfca4b4
4 changed files with 76 additions and 2 deletions

View File

@@ -1112,6 +1112,18 @@ class BaseTerminalController: NSWindowController,
@IBAction func toggleCommandPalette(_ sender: Any?) {
commandPaletteIsShowing.toggle()
}
@IBAction func find(_ sender: Any) {
focusedSurface?.find(sender)
}
@IBAction func findNext(_ sender: Any) {
focusedSurface?.findNext(sender)
}
@IBAction func findPrevious(_ sender: Any) {
focusedSurface?.findNext(sender)
}
@objc func resetTerminal(_ sender: Any) {
guard let surface = focusedSurface?.surface else { return }