diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-01-29 23:52:27 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-11 21:24:48 +0100 |
commit | 635fe05d4e8ee5a6dbadf7d10b6d8340efcbc84d (patch) | |
tree | 65ba851998ff11ac20f55d34604ef317537e0e57 /config | |
parent | 1068365afa0c2a0f55d37b17360ad832657531a0 (diff) | |
download | aerc-635fe05d4e8ee5a6dbadf7d10b6d8340efcbc84d.tar.gz |
config: add msglist-scroll-offset
Add the [ui].msglist-scroll-offset option in aerc.conf to set the scroll
offset in number of lines from the top and bottom of the message list.
Changelog-added: Add `[ui].msglist-scroll-offset` option to set a
scroll offset for the message list.
Suggested-by: Ángel Castañeda <angel@acsq.me>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf | 6 | ||||
-rw-r--r-- | config/ui.go | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index ac2a6847..bbcc270c 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -309,6 +309,12 @@ # Default: false #sort-thread-siblings=false +# Set the scroll offset in number of lines from the top and bottom of the +# message list. +# +# Default: 0 +#msglist-scroll-offset = 0 + #[ui:account=foo] # # Enable a threaded view of messages. If this is not supported by the backend diff --git a/config/ui.go b/config/ui.go index 9a97d4ef..87e137a3 100644 --- a/config/ui.go +++ b/config/ui.go @@ -67,6 +67,7 @@ type UIConfig struct { CompletionDelay time.Duration `ini:"completion-delay" default:"250ms"` CompletionMinChars int `ini:"completion-min-chars" default:"1" parse:"ParseCompletionMinChars"` CompletionPopovers bool `ini:"completion-popovers" default:"true"` + MsglistScrollOffset int `ini:"msglist-scroll-offset" default:"0"` StyleSetDirs []string `ini:"stylesets-dirs" delim:":"` StyleSetName string `ini:"styleset-name" default:"default"` style StyleSet |