From f6aa8c17937fadd1da3c8f2f080ea402ae17da87 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Thu, 13 Mar 2025 03:09:06 +0100 Subject: Add move-column-to-index 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 11469551..67963f2e 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1830,6 +1830,13 @@ impl Layout { true } + pub fn move_column_to_index(&mut self, index: usize) { + let Some(workspace) = self.active_workspace_mut() else { + return; + }; + workspace.move_column_to_index(index); + } + pub fn move_down(&mut self) { let Some(workspace) = self.active_workspace_mut() else { return; -- cgit