aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2024-05-14 23:43:12 +0200
committerRobin Jarry <robin@jarry.cc>2024-05-28 23:52:40 +0200
commit2276a796f36cb6e213aca3b760b411202ed24e0e (patch)
treefb3f172cd733e1d768ff6099b4a6f3a6de439c98 /config
parent9f97c698e3dd8bb98242f0db40946dee514e3ee8 (diff)
downloadaerc-2276a796f36cb6e213aca3b760b411202ed24e0e.tar.gz
ui: add select-last-message option
Add a [ui].select-last-message option to position the cursor at the bottom of the message list view. Fixes: https://todo.sr.ht/~rjarry/aerc/254 Changelog-added: Add `[ui].select-last-message` option to position cursor at the bottom of the view. Suggested-by: Bence Ferdinandy <bence@ferdinandy.com> Requested-by: Tomasz Kramkowski <tomasz@kramkow.ski> Signed-off-by: Koni Marti <koni.marti@gmail.com> Tested-by: Tomasz Kramkowski <tomasz@kramkow.ski> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf6
-rw-r--r--config/ui.go1
2 files changed, 7 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index ccfbe748..a7d763d7 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -371,6 +371,12 @@
# Default: false
#reverse-thread-order=false
+# Positions the cursor on the last message in the message list (at the
+# bottom of the view) when opening a new folder.
+#
+# Default: false
+#select-last-message=false
+
# Sort the thread siblings according to the sort criteria for the messages. If
# sort-thread-siblings is false, the thread siblings will be sorted based on
# the message UID in ascending order. This option is only applicable for
diff --git a/config/ui.go b/config/ui.go
index 7da365d6..7c7f1869 100644
--- a/config/ui.go
+++ b/config/ui.go
@@ -80,6 +80,7 @@ type UIConfig struct {
BorderCharVertical rune `ini:"border-char-vertical" default:"│" type:"rune"`
BorderCharHorizontal rune `ini:"border-char-horizontal" default:"─" type:"rune"`
+ SelectLast bool `ini:"select-last-message" default:"false"`
ReverseOrder bool `ini:"reverse-msglist-order"`
ReverseThreadOrder bool `ini:"reverse-thread-order"`
SortThreadSiblings bool `ini:"sort-thread-siblings"`