Merge pull request #2485 from axdank/move_current_Tab

gui: add move_current_tab action
This commit is contained in:
Mitchell Hashimoto
2024-10-25 14:15:16 -07:00
committed by GitHub
13 changed files with 188 additions and 1 deletions

View File

@@ -203,8 +203,16 @@ extension Ghostty {
}
// MARK: Surface Notifications
// MARK: Surface Notification
extension Notification.Name {
/// Goto tab. Has tab index in the userinfo.
static let ghosttyMoveTab = Notification.Name("com.mitchellh.ghostty.moveTab")
static let GhosttyMoveTabKey = ghosttyMoveTab.rawValue
}
// NOTE: I am moving all of these to Notification.Name extensions over time. This
// namespace was the old namespace.
extension Ghostty.Notification {
/// Used to pass a configuration along when creating a new tab/window/split.
static let NewSurfaceConfigKey = "com.mitchellh.ghostty.newSurfaceConfig"