From: Jaskaran Veer Singh <mail@jaskaran.org>
In pager, show current displayed line numbers, and the length of message
(in percentage) currently visible to the user. Should help in reading
long messages.
Signed-off-by: Jaskaran Veer Singh <mail@jaskaran.org>
---
config/aerc.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/aerc.conf b/config/aerc.conf
index 8043412..920fcb4 100644
--- a/config/aerc.conf+++ b/config/aerc.conf
@@ -179,7 +179,7 @@ render-format=[%a] %S %>%T
# pager which supports ANSI codes.
#
# Default: less -R
-pager=less -R+pager=less -R -M +Gg#
# If an email offers several versions (multipart), you can configure which
--
2.30.1 (Apple Git-130)
> In pager, show current displayed line numbers, and the length of message> (in percentage) currently visible to the user. Should help in reading> long messages.
Sounds like a great idea. Applying this to my local config.
Ivan
Hi there,
, Jun 17, 2022 at 00:09:
> From: Jaskaran Veer Singh <mail@jaskaran.org>>> In pager, show current displayed line numbers, and the length of message> (in percentage) currently visible to the user. Should help in reading> long messages.>> Signed-off-by: Jaskaran Veer Singh <mail@jaskaran.org>> ---> config/aerc.conf | 2 +-> 1 file changed, 1 insertion(+), 1 deletion(-)>> diff --git a/config/aerc.conf b/config/aerc.conf> index 8043412..920fcb4 100644> --- a/config/aerc.conf> +++ b/config/aerc.conf> @@ -179,7 +179,7 @@ render-format=[%a] %S %>%T> # pager which supports ANSI codes.> #> # Default: less -R> -pager=less -R> +pager=less -R -M +Gg
I feel like +Gg is not related to the topic of the patch. Was that
intended?
On Mon Jun 20, 2022 at 4:01 PM EDT, Robin Jarry wrote:
> Hi there,>> , Jun 17, 2022 at 00:09:> > From: Jaskaran Veer Singh <mail@jaskaran.org>> >> > In pager, show current displayed line numbers, and the length of message> > (in percentage) currently visible to the user. Should help in reading> > long messages.> >> > Signed-off-by: Jaskaran Veer Singh <mail@jaskaran.org>> > ---> > config/aerc.conf | 2 +-> > 1 file changed, 1 insertion(+), 1 deletion(-)> >> > diff --git a/config/aerc.conf b/config/aerc.conf> > index 8043412..920fcb4 100644> > --- a/config/aerc.conf> > +++ b/config/aerc.conf> > @@ -179,7 +179,7 @@ render-format=[%a] %S %>%T> > # pager which supports ANSI codes.> > #> > # Default: less -R> > -pager=less -R> > +pager=less -R -M +Gg>> I feel like +Gg is not related to the topic of the patch. Was that> intended?
Without +Gg, `less` won't show the length in percentage of document being
displayed.
--
Jaskaran
On Wed Jun 22, 2022 at 12:28 AM CEST, Jaskaran Veer Singh wrote:
> Without +Gg, `less` won't show the length in percentage of document being> displayed.
Can confirm that aerc requires +Gg.
On Fri Jun 17, 2022 at 12:09 AM CEST, wrote:
> From: Jaskaran Veer Singh <mail@jaskaran.org>>> In pager, show current displayed line numbers, and the length of message> (in percentage) currently visible to the user. Should help in reading> long messages.>> Signed-off-by: Jaskaran Veer Singh <mail@jaskaran.org>> ---> config/aerc.conf | 2 +-> 1 file changed, 1 insertion(+), 1 deletion(-)>> diff --git a/config/aerc.conf b/config/aerc.conf> index 8043412..920fcb4 100644> --- a/config/aerc.conf> +++ b/config/aerc.conf> @@ -179,7 +179,7 @@ render-format=[%a] %S %>%T> # pager which supports ANSI codes.> #> # Default: less -R
The default should be changed accordingly as well.
> -pager=less -R> +pager=less -R -M +Gg>> #> # If an email offers several versions (multipart), you can configure which> --> 2.30.1 (Apple Git-130)
On June 22, 2022 12:28:20 AM GMT+02:00, Jaskaran Veer Singh <mail@jaskaran.org> wrote:
> > > # Default: less -R> > > -pager=less -R> > > +pager=less -R -M +Gg> Without +Gg, `less` won't show the length in percentage of document being> displayed.
Hmm, the man page says these options are related to search highlighting. With + you are disabling them but since they are already disabled by default, I don't know what this does.
By the way, I tried adding only -M and I get both line numbers and percentage displayed in the footer.
Do you have something defined in the LESS env var?
Robin Jarry, Jun 22, 2022 at 08:51:
> By the way, I tried adding only -M and I get both line numbers and> percentage displayed in the footer.
Ok my bad, this only works when reading from a file, not from stdin.
> Robin Jarry, Jun 22, 2022 at 08:51:>> By the way, I tried adding only -M and I get both line numbers and>> percentage displayed in the footer.>> Ok my bad, this only works when reading from a file, not from stdin.
Told you, didn't I? ^^
--
Kind regards,
Mit freundlichen Grüßen,
Moritz Poldrack
https://moritz.sh
Moritz Poldrack, Jun 22, 2022 at 11:12:
> > Robin Jarry, Jun 22, 2022 at 08:51:> >> By the way, I tried adding only -M and I get both line numbers and> >> percentage displayed in the footer.> >> > Ok my bad, this only works when reading from a file, not from stdin.>> Told you, didn't I? ^^
Right.
So I have come to the bottom of this. +Gg is not an option, it is
a command. It means, run "G" and then "g" when opening up the pager,
which basically means, "scroll all the way down" and then "all the way
up". This makes the screen blink every time an email is opened. Also, it
makes the overall experience more sluggish in my opinion.
I feel like this should not be the default. People can tune their own
configuration however they like it.