summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/panes
diff options
context:
space:
mode:
authorYves Biener <56591091+yves-biener@users.noreply.github.com>2023-02-20 17:31:02 +0100
committerGitHub <noreply@github.com>2023-02-20 17:31:02 +0100
commitcf9f806559553d8df0c05780e02a107add93bafa (patch)
tree4901d0e8d3aa8f78c8d55e5cf8d279b8a9e2b6e2 /zellij-server/src/panes
parent03448497174de0f7034db4926ac21130a2ec417b (diff)
fix(ux): fullscreen navigation (#2117)
* fix(pane): fullscreen navigation in all four directions * fix(pane): use previous method in previous context
Diffstat (limited to 'zellij-server/src/panes')
-rw-r--r--zellij-server/src/panes/tiled_panes/mod.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/zellij-server/src/panes/tiled_panes/mod.rs b/zellij-server/src/panes/tiled_panes/mod.rs
index bd6470c90..8ab5cb4f9 100644
--- a/zellij-server/src/panes/tiled_panes/mod.rs
+++ b/zellij-server/src/panes/tiled_panes/mod.rs
@@ -1452,6 +1452,30 @@ impl TiledPanes {
}
}
+ pub fn focus_pane_left_fullscreen(&mut self, client_id: ClientId) {
+ self.unset_fullscreen();
+ self.move_focus_left(client_id);
+ self.toggle_active_pane_fullscreen(client_id);
+ }
+
+ pub fn focus_pane_right_fullscreen(&mut self, client_id: ClientId) {
+ self.unset_fullscreen();
+ self.move_focus_right(client_id);
+ self.toggle_active_pane_fullscreen(client_id);
+ }
+
+ pub fn focus_pane_up_fullscreen(&mut self, client_id: ClientId) {
+ self.unset_fullscreen();
+ self.move_focus_up(client_id);
+ self.toggle_active_pane_fullscreen(client_id);
+ }
+
+ pub fn focus_pane_down_fullscreen(&mut self, client_id: ClientId) {
+ self.unset_fullscreen();
+ self.move_focus_down(client_id);
+ self.toggle_active_pane_fullscreen(client_id);
+ }
+
pub fn switch_next_pane_fullscreen(&mut self, client_id: ClientId) {
self.unset_fullscreen();
self.focus_next_pane(client_id);