From 5c4c574b27dbd35e46b45967e458e4c67a19edc8 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Thu, 4 Apr 2024 09:40:17 +0200 Subject: [PATCH] feat(script/note): jump to end of paginater by default --- scripts/note.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/note.sh b/scripts/note.sh index 4c4e4a2..b6b7a89 100755 --- a/scripts/note.sh +++ b/scripts/note.sh @@ -163,8 +163,8 @@ bat "$XDG_DATA_HOME/life.md/$year.md" | input_length=$(echo "$input" | wc -l) # Compare the input length with the maximum allowed length if ((input_length > max_length)); then - # Input exceeds maximum length - use an external pager like 'less' - echo "$input" | less -r + # Input exceeds maximum length - use an external pager like 'less', but jump to the last line + echo "$input" | less -r +G else # Input does not exceed the maximum length - print directly echo "$input"