bbatsov / helm-projectile

Helm UI for Projectile
329 stars 71 forks source link

helm-projectile-find-file ignores multiples of search strings #2

Closed tko closed 7 years ago

tko commented 8 years ago

https://github.com/bbatsov/projectile/issues/768

nloyola commented 7 years ago

This is not a bug and this is how helm is meant to work. By using one or more spaces in the search term, helm separates them into multiple patterns. The candidates that show up after you type a a match both of these patterns.

The behaviour can be reproduced with the following code:

(helm :sources (helm-build-sync-source "Make a selection:"
                 :candidates '("abc.ext" "abc/abc.ext" "def.ext" "def/def.ext"))
      :buffer "*helm sync source*")

This issue can be closed.

xiongtx commented 7 years ago

If you need to filter for multiple instances of foo, use foo.*foo.