aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhar7an <99636919+har7an@users.noreply.github.com>2022-06-23 19:41:57 +0000
committerGitHub <noreply@github.com>2022-06-23 21:41:57 +0200
commit59d753dc2f48e591aedb59e0b3e4710516c7be42 (patch)
treeaaf6dba26b3520a45e26a28ee4b03309b376f158
parentfix: exit client on empty rcv (#1535) (diff)
downloadsl0ppij-59d753dc2f48e591aedb59e0b3e4710516c7be42.tar.gz
sl0ppij-59d753dc2f48e591aedb59e0b3e4710516c7be42.tar.xz
sl0ppij-59d753dc2f48e591aedb59e0b3e4710516c7be42.zip
fix: Make key order consistent (#1539)
The order of the "arrow" keys is always left/down/up/right, make the keybindings for the Scroll mode align with this ordering.
-rw-r--r--src/tests/e2e/snapshots/zellij__tests__e2e__cases__scrolling_inside_a_pane.snap2
-rw-r--r--zellij-utils/src/input/mod.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__scrolling_inside_a_pane.snap b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__scrolling_inside_a_pane.snap
index 422a5616..0d8db2d4 100644
--- a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__scrolling_inside_a_pane.snap
+++ b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__scrolling_inside_a_pane.snap
@@ -26,4 +26,4 @@ expression: last_snapshot
│ ││line19 00000000000000000000000000000000000000000000000000█│
└──────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────────────┘
Ctrl + <g> LOCK  <p> PANE  <t> TAB  <n> RESIZE  <h> MOVE  <s> SCROLL  <o> SESSION  <q> QUIT 
- <↓↑> Scroll / <PgUp/PgDn> Scroll / <u/d> Scroll / <e> Edit / <ENTER> Select pane
+ <↓↑> Scroll / <PgDn/PgUp> Scroll / <d/u> Scroll / <e> Edit / <ENTER> Select pane
diff --git a/zellij-utils/src/input/mod.rs b/zellij-utils/src/input/mod.rs
index ed88b62d..807c87c9 100644
--- a/zellij-utils/src/input/mod.rs
+++ b/zellij-utils/src/input/mod.rs
@@ -53,8 +53,8 @@ pub fn get_mode_info(mode: InputMode, style: Style, capabilities: PluginCapabili
],
InputMode::Scroll => vec![
("↓↑".to_string(), "Scroll".to_string()),
- ("PgUp/PgDn".to_string(), "Scroll Page".to_string()),
- ("u/d".to_string(), "Scroll Half Page".to_string()),
+ ("PgDn/PgUp".to_string(), "Scroll Page".to_string()),
+ ("d/u".to_string(), "Scroll Half Page".to_string()),
(
"e".to_string(),
"Edit Scrollback in Default Editor".to_string(),