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"