Add move-column-to-{first,last}

This commit is contained in:
Ivan Molodetskikh
2023-12-29 08:01:02 +04:00
parent 310aa2b464
commit 56174b2c34
6 changed files with 53 additions and 0 deletions
+13
View File
@@ -674,6 +674,19 @@ impl<W: LayoutElement> Workspace<W> {
self.move_column_to(new_idx);
}
pub fn move_column_to_first(&mut self) {
self.move_column_to(0);
}
pub fn move_column_to_last(&mut self) {
if self.columns.is_empty() {
return;
}
let new_idx = self.columns.len() - 1;
self.move_column_to(new_idx);
}
pub fn move_down(&mut self) {
if self.columns.is_empty() {
return;