aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/search.go')
-rw-r--r--commands/account/search.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/commands/account/search.go b/commands/account/search.go
index 513ad439..a8640dcc 100644
--- a/commands/account/search.go
+++ b/commands/account/search.go
@@ -9,12 +9,21 @@ import (
"git.sr.ht/~sircmpwn/aerc/widgets"
)
+type SearchFilter struct{}
+
func init() {
- register("search", SearchFilter)
- //register("filter", SearchFilter) // TODO
+ register(SearchFilter{})
+}
+
+func (_ SearchFilter) Aliases() []string {
+ return []string{"search"}
+}
+
+func (_ SearchFilter) Complete(aerc *widgets.Aerc, args []string) []string {
+ return nil
}
-func SearchFilter(aerc *widgets.Aerc, args []string) error {
+func (_ SearchFilter) Execute(aerc *widgets.Aerc, args []string) error {
var (
criteria *imap.SearchCriteria = imap.NewSearchCriteria()
)