explicit scrollback editor command

This commit is contained in:
Gregor Lohaus
2026-09-09 12:49:47 +02:00
parent c5e4e5fb85
commit ca30e9a0ee
7 changed files with 227 additions and 1 deletions
+8
View File
@@ -235,6 +235,13 @@ impl App {
}
}
Action::Paste => ctx.send_viewport_cmd(egui::ViewportCommand::RequestPaste),
Action::OpenScrollback => {
self.panes.get_mut(&active).unwrap().open_scrollback(
&self.config,
&self.theme,
ctx,
)?;
}
}
Ok(())
}
@@ -425,6 +432,7 @@ impl eframe::App for App {
("Zoom / restore", Action::ZoomPane),
("Next pane", Action::NextPane),
("Close pane", Action::ClosePane),
("Open scrollback in editor", Action::OpenScrollback),
] {
if ui.button(label).clicked() {
action = Some(a);