From da1f014b7050195d7f3e6f849bc105d87efc227b Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Wed, 10 May 2023 14:18:28 +0200 Subject: config: update default pager Since aercs embedded terminal now behaves correctly, a messages contents are at the bottom of the pager by default, this has already sparked confusion as this is uncommon and not matching previous behaviour. Thanks: Stacy Harper Suggested-by: Tim Culverhouse Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- config/aerc.conf | 4 ++-- config/viewer.go | 2 +- doc/aerc-config.5.scd | 2 +- widgets/msgviewer.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/aerc.conf b/config/aerc.conf index 800e6ec6..7d33b43d 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -338,8 +338,8 @@ # may add ANSI codes to add color to rendered emails, so you may want to use a # pager which supports ANSI codes. # -# Default: less -R -#pager=less -R +# Default: less -Rc +#pager=less -Rc # # If an email offers several versions (multipart), you can configure which diff --git a/config/viewer.go b/config/viewer.go index 091fb4b6..8ebe82a5 100644 --- a/config/viewer.go +++ b/config/viewer.go @@ -6,7 +6,7 @@ import ( ) type ViewerConfig struct { - Pager string `ini:"pager" default:"less -R"` + Pager string `ini:"pager" default:"less -Rc"` Alternatives []string `ini:"alternatives" default:"text/plain,text/html" delim:","` ShowHeaders bool `ini:"show-headers"` AlwaysShowMime bool `ini:"always-show-mime"` diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index aff57729..9e1f8a37 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -479,7 +479,7 @@ These options are configured in the *[viewer]* section of _aerc.conf_. may add ANSI escape sequences to add color to rendered emails, so you may want to use a pager which supports ANSI. - Default: _less -R_ + Default: _less -Rc_ *alternatives* = __ If an email offers several versions (multipart), you can configure which diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 684c99cb..6752fbff 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -549,7 +549,7 @@ func NewPartViewer( cmds := []string{ config.Viewer.Pager, os.Getenv("PAGER"), - "less -R", + "less -Rc", } pagerCmd, err := acct.aerc.CmdFallbackSearch(cmds) if err != nil { -- cgit v1.2.3-54-g00ecf