aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-08-12 00:51:41 +0200
committerRobin Jarry <robin@jarry.cc>2023-11-02 16:30:57 +0100
commit0b0095eeadaf7645b731f277c06e3f19e63ea981 (patch)
treed299d8b6a9b234eb3f2f7e0d7d9ec6b49838fb80 /lib/ui
parent44a55d41ad6b5c61c75456414e13aec94b367b02 (diff)
downloadaerc-0b0095eeadaf7645b731f277c06e3f19e63ea981.tar.gz
complete: allow disabling automatic completion
Allow setting complete-min-chars = manual to disable automatic completion. Changelog-added: Setting `complete-min-chars=manual` in `aerc.conf` now disables automatic completion, leaving only manually triggered completion. Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/textinput.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go
index 4b051d88..d1d46045 100644
--- a/lib/ui/textinput.go
+++ b/lib/ui/textinput.go
@@ -308,6 +308,10 @@ func (ti *TextInput) updateCompletions() {
// no completer
return
}
+ if ti.completeMinChars == config.MANUAL_COMPLETE {
+ // only manually triggered completion
+ return
+ }
if ti.completeDebouncer == nil {
ti.completeDebouncer = time.AfterFunc(ti.completeDelay, func() {
defer log.PanicHandler()