aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input/handler.rs
diff options
context:
space:
mode:
authorDante Pippi <6619666+dantepippi@users.noreply.github.com>2021-04-27 14:03:41 -0300
committerDante Pippi <6619666+dantepippi@users.noreply.github.com>2021-04-28 11:15:58 -0300
commit1a84c5f4ecdb119068d39864191c69608ab5ac29 (patch)
treed2bd00dea854a97e7e2959c81478c0563c1425c5 /src/common/input/handler.rs
parentdocs(changelog): Screen Config File (#399) (diff)
downloadsl0ppij-1a84c5f4ecdb119068d39864191c69608ab5ac29.tar.gz
sl0ppij-1a84c5f4ecdb119068d39864191c69608ab5ac29.tar.xz
sl0ppij-1a84c5f4ecdb119068d39864191c69608ab5ac29.zip
New feature: Synchronize text sent to panes
Diffstat (limited to 'src/common/input/handler.rs')
-rw-r--r--src/common/input/handler.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index 197f8315..fa5268bd 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -244,6 +244,12 @@ impl InputHandler {
.send(ScreenInstruction::SwitchTabPrev)
.unwrap();
}
+ Action::ToggleActiveSyncPanes => {
+ self.send_screen_instructions
+ .send(ScreenInstruction::ToggleActiveSyncPanes)
+ .unwrap();
+
+ }
Action::CloseTab => {
self.command_is_executing.closing_pane();
self.send_screen_instructions
@@ -293,6 +299,7 @@ pub fn get_mode_info(mode: InputMode) -> ModeInfo {
keybinds.push(("d".to_string(), "Down split".to_string()));
keybinds.push(("r".to_string(), "Right split".to_string()));
keybinds.push(("x".to_string(), "Close".to_string()));
+ keybinds.push(("s".to_string(), "Sync".to_string()));
keybinds.push(("f".to_string(), "Fullscreen".to_string()));
}
InputMode::Tab => {