macos: new window on existing terminal inherits properly

This commit is contained in:
Mitchell Hashimoto
2023-10-30 22:57:46 -07:00
parent ecd7a17384
commit 6a024897a6
2 changed files with 6 additions and 1 deletions

View File

@ -152,6 +152,11 @@ class TerminalController: NSWindowController, NSWindowDelegate, TerminalViewDele
//MARK: - First Responder
@IBAction func newWindow(_ sender: Any?) {
guard let surface = focusedSurface?.surface else { return }
ghostty.newWindow(surface: surface)
}
@IBAction func newTab(_ sender: Any?) {
guard let surface = focusedSurface?.surface else { return }
ghostty.newTab(surface: surface)

View File

@ -94,7 +94,7 @@
<menuItem title="New Window" id="Was-JA-tGl">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="newWindow:" target="bbz-4X-AYv" id="NnC-l5-DUY"/>
<action selector="newWindow:" target="-1" id="pnf-fE-gHi"/>
</connections>
</menuItem>
<menuItem title="New Tab" id="uTG-Vz-hJU">