summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf5
-rw-r--r--config/config.go2
2 files changed, 7 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index f07900d..3b7b5d6 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -179,6 +179,11 @@ completion-popovers=true
# Default: false
#force-client-threads=false
+# Debounce client-side thread building
+#
+# Default: 50ms
+#client-threads-delay=50ms
+
[statusline]
# Describes the format string for the statusline.
#
diff --git a/config/config.go b/config/config.go
index 6a8be10..233f2e0 100644
--- a/config/config.go
+++ b/config/config.go
@@ -48,6 +48,7 @@ type UIConfig struct {
MouseEnabled bool `ini:"mouse-enabled"`
ThreadingEnabled bool `ini:"threading-enabled"`
ForceClientThreads bool `ini:"force-client-threads"`
+ ClientThreadsDelay time.Duration `ini:"client-threads-delay"`
FuzzyComplete bool `ini:"fuzzy-complete"`
NewMessageBell bool `ini:"new-message-bell"`
Spinner string `ini:"spinner"`
@@ -712,6 +713,7 @@ func LoadConfigFromFile(root *string) (*AercConfig, error) {
EmptyMessage: "(no messages)",
EmptyDirlist: "(no folders)",
MouseEnabled: false,
+ ClientThreadsDelay: 50 * time.Millisecond,
NewMessageBell: true,
FuzzyComplete: false,
Spinner: "[..] , [..] , [..] , [..] , [..], [..] , [..] , [..] ",