macos: listen for config change and post a notification

This commit is contained in:
Mitchell Hashimoto
2024-11-20 15:22:05 -08:00
parent fadfb08efe
commit 3afb9065f0
2 changed files with 32 additions and 0 deletions

View File

@@ -206,6 +206,10 @@ extension Ghostty {
// MARK: Surface Notification
extension Notification.Name {
/// Configuration change. If the object is nil then it is app-wide. Otherwise its surface-specific.
static let ghosttyConfigChange = Notification.Name("com.mitchellh.ghostty.configChange")
static let GhosttyConfigChangeKey = ghosttyConfigChange.rawValue
/// Goto tab. Has tab index in the userinfo.
static let ghosttyMoveTab = Notification.Name("com.mitchellh.ghostty.moveTab")
static let GhosttyMoveTabKey = ghosttyMoveTab.rawValue