macos: add split zoom to menu

This commit is contained in:
Mitchell Hashimoto
2023-09-10 09:30:42 -07:00
parent 1d0e2c43b5
commit ef5c5d1c0b
3 changed files with 21 additions and 0 deletions

View File

@@ -170,6 +170,13 @@ extension Ghostty {
ghostty_surface_split_focus(surface, direction.toNative())
}
func splitToggleZoom(surface: ghostty_surface_t) {
let action = "toggle_split_zoom"
if (!ghostty_surface_binding_action(surface, action, UInt(action.count))) {
AppDelegate.logger.warning("action failed action=\(action)")
}
}
// Called when the selected keyboard changes. We have to notify Ghostty so that
// it can reload the keyboard mapping for input.
@objc private func keyboardSelectionDidChange(notification: NSNotification) {