macos: help menu goes to the github repo

This commit is contained in:
Mitchell Hashimoto
2023-08-05 15:03:17 -07:00
parent d9baf5e759
commit 5f5a23acc4
2 changed files with 6 additions and 1 deletions

View File

@ -145,4 +145,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
guard let surface = focusedSurface() else { return } guard let surface = focusedSurface() else { return }
ghostty.splitMoveFocus(surface: surface, direction: direction) 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)
}
} }

View File

@ -191,7 +191,7 @@
<items> <items>
<menuItem title="Ghostty Help" keyEquivalent="?" id="FKE-Sm-Kum"> <menuItem title="Ghostty Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections> <connections>
<action selector="showHelp:" target="-1" id="y7X-2Q-9no"/> <action selector="showHelp:" target="bbz-4X-AYv" id="tiy-ow-xSw"/>
</connections> </connections>
</menuItem> </menuItem>
</items> </items>