join all following arguments to a single query if an argument is provided

This commit is contained in:
Ivar Fatland
2026-04-20 14:47:13 +02:00
parent 732cb0802e
commit b39eb32e97
+2 -1
View File
@@ -126,7 +126,8 @@ func main() {
} }
if len(os.Args) > 1 { if len(os.Args) > 1 {
options = append(options, fuzzyfinder.WithQuery(os.Args[1])) query := strings.Join(os.Args[1:], " ")
options = append(options, fuzzyfinder.WithQuery(query))
} }
i, err := fuzzyfinder.Find( i, err := fuzzyfinder.Find(