aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/msglist.go2
-rw-r--r--config/aerc.conf6
-rw-r--r--config/ui.go1
-rw-r--r--doc/aerc-config.5.scd6
4 files changed, 15 insertions, 0 deletions
diff --git a/app/msglist.go b/app/msglist.go
index 63089536..a5e5fbb6 100644
--- a/app/msglist.go
+++ b/app/msglist.go
@@ -320,6 +320,8 @@ func (ml *MessageList) storeUpdate(store *lib.MessageStore) {
func (ml *MessageList) SetStore(store *lib.MessageStore) {
if ml.Store() != store {
ml.Scrollable = Scrollable{}
+ n := SelectedAccountUiConfig().MsglistScrollOffset
+ ml.SetOffset(n)
}
ml.store = store
if store != nil {
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
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index 9ba7a941..f886eb92 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -469,6 +469,12 @@ These options are configured in the *[ui]* section of _aerc.conf_.
Default: _false_
+*msglist-scroll-offset* = _<int>_
+ Set the scroll offset in number of lines from the top and bottom
+ of the message list.
+
+ Default: _0_
+
## THREAD PREFIX CUSTOMIZATION
You can fully customize the thread arrows appearance, which is defined by the