diff options
author | Moritz Poldrack <git@moritz.sh> | 2023-05-10 14:18:28 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-05-16 13:56:58 +0200 |
commit | da1f014b7050195d7f3e6f849bc105d87efc227b (patch) | |
tree | e084c77447754a498eacd236da79ea458f66fb94 | |
parent | d22f2bf4d0a88b5a0e608e2cb2776e69eb1cd553 (diff) | |
download | aerc-da1f014b7050195d7f3e6f849bc105d87efc227b.tar.gz |
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 <contact@stacyharper.net>
Suggested-by: Tim Culverhouse <tim@timculverhouse.com>
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | config/aerc.conf | 4 | ||||
-rw-r--r-- | config/viewer.go | 2 | ||||
-rw-r--r-- | doc/aerc-config.5.scd | 2 | ||||
-rw-r--r-- | 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* = _<mime,types>_ 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 { |