From fcaca6b6879e2aa60f77e46b142dbf4404bd4576 Mon Sep 17 00:00:00 2001 From: Fakerr Date: Tue, 14 Feb 2017 04:00:08 +0100 Subject: [PATCH] use e to expand/reduce --- git-recall | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-recall b/git-recall index 1191c7f..b791b0f 100644 --- a/git-recall +++ b/git-recall @@ -168,6 +168,7 @@ ad="`echo -e '\e[B'`" # arrow down ad_1="j" # arrow down ec="`echo -e '\e'`" # escape nl="`echo -e '\n'`" # newline +nl_1="e" # expand # Create a temporary lesskey file to change the keybindings so the user can use the TAB key to quit less. (more convenient) if [[ $LESSKEY = true ]]; then @@ -215,7 +216,7 @@ function print_diff() { do read -sn 1 key case "$key" in - "$nl") + "$nl" | "$nl_1") stop=true ;; "q") @@ -313,7 +314,7 @@ do [[ $SI = 1 ]] && [[ $CP = 1 ]] && tput ed # clear screen ;; - "$nl") + "$nl" | "$nl_1") [[ $TN == $NI ]] && tput cuu $(( TN + OFFSET_2 )) [[ $TN != $NI ]] && tput cuu $(( TN + EXT )) print_diff