From 301211e461a172abb9143ba4c3b31f0504af84e0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 3 Nov 2024 11:31:59 +0100 Subject: fix(modules/less/command.less): Improve keymappings This removes some unneeded ones and adds the ARROW UP mapping to ensure symmetry to the ARROW DOWN mapping. --- modules/by-name/le/less/command.less | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'modules/by-name/le') diff --git a/modules/by-name/le/less/command.less b/modules/by-name/le/less/command.less index 5365686b..a29395e8 100644 --- a/modules/by-name/le/less/command.less +++ b/modules/by-name/le/less/command.less @@ -1,35 +1,43 @@ #command -\r forw-line -\n forw-line -e forw-line +# Vim keys t forw-line +n back-line +T forw-line-force +N back-line-force + +# Arrow movement (down and up) \kd forw-line +\ku back-line + ˆE forw-line ˆN forw-line -n back-line -y back-line ˆY back-line ˆK back-line ˆP back-line -T forw-line-force -N back-line-force -Y back-line-force + + d forw-scroll ˆD forw-scroll u back-scroll ˆU back-scroll + +# Space \40 forw-screen +\e\40 forw-screen-force f forw-screen -ˆF forw-screen -ˆV forw-screen -\kD forw-screen b back-screen -ˆB back-screen -\ev back-screen +# Page Down and Up +\kD forw-screen \kU back-screen + +\ev back-screen +ˆB back-screen +ˆF forw-screen +ˆV forw-screen + z forw-window w back-window -\e\40 forw-screen-force + F forw-forever \eF forw-until-hilite R repaint-flush -- cgit 1.4.1