mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-05 03:14:14 +00:00
macos: remove to "close to the right"
This commit is contained in:
@@ -640,9 +640,7 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
|
||||
let tabsToClose = tabGroup.windows.enumerated().filter { $0.offset > currentIndex }
|
||||
guard !tabsToClose.isEmpty else { return }
|
||||
|
||||
if let undoManager {
|
||||
undoManager.beginUndoGrouping()
|
||||
}
|
||||
undoManager?.beginUndoGrouping()
|
||||
defer {
|
||||
undoManager?.endUndoGrouping()
|
||||
}
|
||||
@@ -654,7 +652,7 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
|
||||
}
|
||||
|
||||
if let undoManager {
|
||||
undoManager.setActionName("Close Tabs on the Right")
|
||||
undoManager.setActionName("Close Tabs to the Right")
|
||||
|
||||
undoManager.registerUndo(
|
||||
withTarget: self,
|
||||
|
||||
@@ -297,7 +297,7 @@ class TerminalWindow: NSWindow {
|
||||
}
|
||||
guard let terminalController else { return }
|
||||
|
||||
let title = NSLocalizedString("Close Tabs on the Right", comment: "Tab context menu option")
|
||||
let title = NSLocalizedString("Close Tabs to the Right", comment: "Tab context menu option")
|
||||
let item = NSMenuItem(title: title, action: #selector(TerminalController.closeTabsOnTheRight(_:)), keyEquivalent: "")
|
||||
item.identifier = Self.closeTabsOnRightMenuItemIdentifier
|
||||
item.target = terminalController
|
||||
|
||||
Reference in New Issue
Block a user