jhawthorn / fzy

:mag: A simple, fast fuzzy finder for the terminal
MIT License
2.98k stars 126 forks source link

Multiple patterns delimited by spaces #67

Open notramo opened 6 years ago

notramo commented 6 years ago

Please add a mode to fzy so search with multiple patterns. (see the EXTENDED SEARCH MODE in fzf man page) In this mode, spaces don't match a literal space character, but acts as delimiters of patterns, and each pattern is matched independently. In this mode, with two patterns, a string should get lower score, if the two patterns matches directly next to each other. A string should get a higher score, if the patterns match in the order they are given in the prompt. (Currently, using this mode of fzf gives better results with less typing)

voidus commented 2 years ago

Yes please. When selecting files in vim, I'll often notice that there are multiple matches in different directories. With fzf, it's very convenient to type a space and then a match for the directory.