From c9c7b3803ecdddb74b479a9bf8e3aec63584a881 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Wed, 10 Jul 2024 08:47:04 -0500 Subject: [PATCH] macos: add split menu items to context menu --- macos/Sources/Ghostty/SurfaceView_AppKit.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 0a9df88f8..26e41f61f 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -945,7 +945,11 @@ extension Ghostty { menu.addItem(withTitle: "Copy", action: #selector(copy(_:)), keyEquivalent: "") } menu.addItem(withTitle: "Paste", action: #selector(paste(_:)), keyEquivalent: "") - + + menu.addItem(.separator()) + menu.addItem(withTitle: "Split Right", action: #selector(TerminalController.splitRight(_:)), keyEquivalent: "") + menu.addItem(withTitle: "Split Down", action: #selector(TerminalController.splitDown(_:)), keyEquivalent: "") + menu.addItem(.separator()) menu.addItem(withTitle: "Toggle Terminal Inspector", action: #selector(TerminalController.toggleTerminalInspector(_:)), keyEquivalent: "")