diff options
author | kt programs <ktprograms@gmail.com> | 2022-03-06 10:58:07 +0800 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-03-07 10:18:50 +0100 |
commit | cc172970a079bb78847f2276db8bfae375cda185 (patch) | |
tree | 143f9f049d7faf01e6ab1b07aac5017c516efbb2 /config | |
parent | 55ae3d2cab8489609a1b11c169c28306730a71ea (diff) | |
download | aerc-cc172970a079bb78847f2276db8bfae375cda185.tar.gz |
commands: implement fuzzy completion for commands and options
Change the option to enable fuzzy completion to be fuzzy-complete, since
it's no longer only used for folders
Signed-off-by: Kt Programs <ktprograms@gmail.com>
Acked-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf | 7 | ||||
-rw-r--r-- | config/config.go | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index a7628e39..fbbf5877 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -124,9 +124,10 @@ stylesets-dirs= # Default: default styleset-name=default -# Activates fuzzy search for IMAP folders: the typed string is search in the -# folder tree in any position, not necessarily at the beginning. -#fuzzy-folder-complete=false +# Activates fuzzy search in commands and their arguments: the typed string is +# searched in the command or option in any position, and need not be +# consecutive characters in the command or option. +#fuzzy-complete=false #[ui:account=foo] # diff --git a/config/config.go b/config/config.go index 3fecb360..8a01f503 100644 --- a/config/config.go +++ b/config/config.go @@ -44,7 +44,7 @@ type UIConfig struct { EmptyDirlist string `ini:"empty-dirlist"` MouseEnabled bool `ini:"mouse-enabled"` ThreadingEnabled bool `ini:"threading-enabled"` - FuzzyFolderComplete bool `ini:"fuzzy-folder-complete"` + FuzzyComplete bool `ini:"fuzzy-complete"` NewMessageBell bool `ini:"new-message-bell"` Spinner string `ini:"spinner"` SpinnerDelimiter string `ini:"spinner-delimiter"` @@ -622,7 +622,7 @@ func LoadConfigFromFile(root *string, logger *log.Logger) (*AercConfig, error) { EmptyDirlist: "(no folders)", MouseEnabled: false, NewMessageBell: true, - FuzzyFolderComplete: false, + FuzzyComplete: false, Spinner: "[..] , [..] , [..] , [..] , [..], [..] , [..] , [..] ", SpinnerDelimiter: ",", DirListFormat: "%n %>r", |