Refactor toggleMaximize to use notifications

This commit is contained in:
Aaron Ruan
2025-04-27 08:48:06 +08:00
parent 334093a9ea
commit 1ec3e331de
4 changed files with 30 additions and 8 deletions

View File

@@ -257,6 +257,9 @@ extension Notification.Name {
/// Ring the bell
static let ghosttyBellDidRing = Notification.Name("com.mitchellh.ghostty.ghosttyBellDidRing")
static let ghosttyCommandPaletteDidToggle = Notification.Name("com.mitchellh.ghostty.commandPaletteDidToggle")
/// Toggle maximize of current window
static let ghosttyToggleMaximize = Notification.Name("com.mitchellh.ghostty.toggleMaximize")
}
// NOTE: I am moving all of these to Notification.Name extensions over time. This