mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
core: fix up toggle_slide_terminal action for rebase
This commit is contained in:
@ -507,6 +507,7 @@ typedef enum {
|
||||
GHOSTTY_ACTION_TOGGLE_FULLSCREEN,
|
||||
GHOSTTY_ACTION_TOGGLE_TAB_OVERVIEW,
|
||||
GHOSTTY_ACTION_TOGGLE_WINDOW_DECORATIONS,
|
||||
GHOSTTY_ACTION_TOGGLE_SLIDE_TERMINAL,
|
||||
GHOSTTY_ACTION_GOTO_TAB,
|
||||
GHOSTTY_ACTION_GOTO_SPLIT,
|
||||
GHOSTTY_ACTION_RESIZE_SPLIT,
|
||||
|
@ -324,6 +324,7 @@ pub fn performAction(
|
||||
.open_config => try rt_app.performAction(.app, .open_config, {}),
|
||||
.reload_config => try self.reloadConfig(rt_app),
|
||||
.close_all_windows => try rt_app.performAction(.app, .close_all_windows, {}),
|
||||
.toggle_slide_terminal => try rt_app.performAction(.app, .toggle_slide_terminal, {}),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3856,12 +3856,6 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
|
||||
.toggle,
|
||||
),
|
||||
|
||||
.toggle_slide_terminal => {
|
||||
if (@hasDecl(apprt.Surface, "toggleSlideTerminal")) {
|
||||
self.rt_surface.toggleSlideTerminal();
|
||||
} else log.warn("runtime doesn't implement toggleSlideTerminal", .{});
|
||||
},
|
||||
|
||||
.select_all => {
|
||||
const sel = self.io.terminal.screen.selectAll();
|
||||
if (sel) |s| {
|
||||
|
@ -93,6 +93,9 @@ pub const Action = union(Key) {
|
||||
/// Toggle whether window directions are shown.
|
||||
toggle_window_decorations,
|
||||
|
||||
/// Toggle the slide terminal in or out.
|
||||
toggle_slide_terminal,
|
||||
|
||||
/// Jump to a specific tab. Must handle the scenario that the tab
|
||||
/// value is invalid.
|
||||
goto_tab: GotoTab,
|
||||
@ -176,6 +179,7 @@ pub const Action = union(Key) {
|
||||
toggle_fullscreen,
|
||||
toggle_tab_overview,
|
||||
toggle_window_decorations,
|
||||
toggle_slide_terminal,
|
||||
goto_tab,
|
||||
goto_split,
|
||||
resize_split,
|
||||
|
@ -196,6 +196,7 @@ pub const App = struct {
|
||||
.close_all_windows,
|
||||
.toggle_tab_overview,
|
||||
.toggle_window_decorations,
|
||||
.toggle_slide_terminal,
|
||||
.goto_tab,
|
||||
.inspector,
|
||||
.render_inspector,
|
||||
|
@ -379,6 +379,7 @@ pub fn performAction(
|
||||
// Unimplemented
|
||||
.close_all_windows,
|
||||
.toggle_split_zoom,
|
||||
.toggle_slide_terminal,
|
||||
.size_limit,
|
||||
.cell_size,
|
||||
.secure_input,
|
||||
|
@ -578,6 +578,7 @@ pub const Action = union(enum) {
|
||||
.reload_config,
|
||||
.close_all_windows,
|
||||
.quit,
|
||||
.toggle_slide_terminal,
|
||||
=> .app,
|
||||
|
||||
// These are app but can be special-cased in a surface context.
|
||||
|
Reference in New Issue
Block a user