diff options
author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2021-10-19 20:20:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 20:20:28 +0530 |
commit | d90e3d4cacbafd395a9df7ee3a02d5e908b5df2d (patch) | |
tree | 28c7a09ef3018cd6af868f7e4ab9ea7307733911 /zellij-tile/src | |
parent | 76a96b538b2bb8715f9fcd2d4f02603199671b46 (diff) |
Feature: Move panes directionally (#762)
* Feature: Move panes directionally
* change keybinds
* Fix active pane after move
* Add a separate 'Move' mode
* Add tests
* Add more tests
* Send resize message to pty
* wrap set_terminal_size_using_fd() in macro
* change keybind for Move mode
* cargo fmt
* fix test
* move render functions from tab.rs to screen.rs
* undo wrong keybinds
Diffstat (limited to 'zellij-tile/src')
-rw-r--r-- | zellij-tile/src/data.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs index 4d6bba303..9696b3563 100644 --- a/zellij-tile/src/data.rs +++ b/zellij-tile/src/data.rs @@ -81,6 +81,9 @@ pub enum InputMode { /// `Session` mode allows detaching sessions #[serde(alias = "session")] Session, + /// `Move` mode allows moving the different existing panes within a tab + #[serde(alias = "move")] + Move, } impl Default for InputMode { @@ -124,6 +127,7 @@ impl FromStr for InputMode { "scroll" => Ok(InputMode::Scroll), "renametab" => Ok(InputMode::RenameTab), "session" => Ok(InputMode::Session), + "move" => Ok(InputMode::Move), e => Err(e.to_string().into()), } } |