aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input
diff options
context:
space:
mode:
authordantepippi <6619666+dantepippi@users.noreply.github.com>2021-05-07 11:07:23 -0300
committerGitHub <noreply@github.com>2021-05-07 16:07:23 +0200
commit543b70a2bdd343ee274f9dca65020bd6915c8b27 (patch)
tree3751d0e039ddeec75cf93855c6070ab090ca2033 /src/common/input
parentdocs(changelog): terminal aifx (diff)
downloadsl0ppij-543b70a2bdd343ee274f9dca65020bd6915c8b27.tar.gz
sl0ppij-543b70a2bdd343ee274f9dca65020bd6915c8b27.tar.xz
sl0ppij-543b70a2bdd343ee274f9dca65020bd6915c8b27.zip
Moving the sync command to the Tab mode (#412)
* Moving the sync command to the Tab mode * Fixing bug related to plugin panes and sync mode When sync mode was enabled the input from a plugin pane was being incorrectly ignored.
Diffstat (limited to 'src/common/input')
-rw-r--r--src/common/input/actions.rs4
-rw-r--r--src/common/input/handler.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/input/actions.rs b/src/common/input/actions.rs
index 46a8e1d6..54cbbcdc 100644
--- a/src/common/input/actions.rs
+++ b/src/common/input/actions.rs
@@ -39,8 +39,8 @@ pub enum Action {
PageScrollDown,
/// Toggle between fullscreen focus pane and normal layout.
ToggleFocusFullscreen,
- /// Toggle between sending text commands to all panes and normal mode.
- ToggleActiveSyncPanes,
+ /// Toggle between sending text commands to all panes on the current tab and normal mode.
+ ToggleActiveSyncTab,
/// Open a new pane in the specified direction (relative to focus).
/// If no direction is specified, will try to use the biggest available space.
NewPane(Option<Direction>),
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index 75f9f8b1..a4293220 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -160,7 +160,6 @@ pub fn get_mode_info(mode: InputMode, palette: Palette) -> 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 => {
@@ -168,6 +167,7 @@ pub fn get_mode_info(mode: InputMode, palette: Palette) -> ModeInfo {
keybinds.push(("n".to_string(), "New".to_string()));
keybinds.push(("x".to_string(), "Close".to_string()));
keybinds.push(("r".to_string(), "Rename".to_string()));
+ keybinds.push(("s".to_string(), "Sync".to_string()));
}
InputMode::Scroll => {
keybinds.push(("↓↑".to_string(), "Scroll".to_string()));