From defd4c5c4db8b22b2a5db468c0618c37b30e95dd Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 12 May 2025 14:11:38 +0300 Subject: Add center-visible-columns action --- src/layout/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/layout/mod.rs') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index b2726bef..6a497c81 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -2332,6 +2332,13 @@ impl Layout { workspace.center_window(id); } + pub fn center_visible_columns(&mut self) { + let Some(workspace) = self.active_workspace_mut() else { + return; + }; + workspace.center_visible_columns(); + } + pub fn focus(&self) -> Option<&W> { self.focus_with_output().map(|(win, _out)| win) } -- cgit