Introduce reset_window_size keybinding and apprt action

Related to #6035

This implements the keybind/action portion of #5974 so that this can
have a binding and so that other apprts can respond to this and
implement it this way.
This commit is contained in:
Mitchell Hashimoto
2025-02-28 15:25:14 -08:00
parent c6485b9fd5
commit 17cae57f51
11 changed files with 65 additions and 2 deletions

View File

@@ -247,6 +247,9 @@ extension Notification.Name {
/// Close tab
static let ghosttyCloseTab = Notification.Name("com.mitchellh.ghostty.closeTab")
/// Resize the window to a default size.
static let ghosttyResetWindowSize = Notification.Name("com.mitchellh.ghostty.resetWindowSize")
}
// NOTE: I am moving all of these to Notification.Name extensions over time. This