From 5f5a23acc43c9d214ecc5c840783c67facec1e57 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 5 Aug 2023 15:03:17 -0700 Subject: [PATCH] macos: help menu goes to the github repo --- macos/Sources/AppDelegate.swift | 5 +++++ macos/Sources/MainMenu.xib | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/macos/Sources/AppDelegate.swift b/macos/Sources/AppDelegate.swift index e6373d9b8..066401056 100644 --- a/macos/Sources/AppDelegate.swift +++ b/macos/Sources/AppDelegate.swift @@ -145,4 +145,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject { guard let surface = focusedSurface() else { return } ghostty.splitMoveFocus(surface: surface, direction: direction) } + + @IBAction func showHelp(_ sender: Any) { + guard let url = URL(string: "https://github.com/mitchellh/ghostty") else { return } + NSWorkspace.shared.open(url) + } } diff --git a/macos/Sources/MainMenu.xib b/macos/Sources/MainMenu.xib index da8332a4f..f65bf2e24 100644 --- a/macos/Sources/MainMenu.xib +++ b/macos/Sources/MainMenu.xib @@ -191,7 +191,7 @@ - +