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

@@ -380,6 +380,11 @@ pub const Action = union(enum) {
/// Equalize all splits in the current window
equalize_splits: void,
/// Reset the window to the default size. The "default size" is the
/// size that a new window would be created with. This has no effect
/// if the window is fullscreen.
reset_window_size: void,
/// Control the terminal inspector visibility.
///
/// Arguments:
@@ -772,6 +777,7 @@ pub const Action = union(enum) {
.toggle_fullscreen,
.toggle_window_decorations,
.toggle_secure_input,
.reset_window_size,
.crash,
=> .surface,