gharlan / alfred-github-workflow

GitHub Workflow for Alfred
MIT License
2.89k stars 147 forks source link

better fuzzy search? #114

Closed godbout closed 4 years ago

godbout commented 4 years ago

any chance to improve the fuzzy search? like currently gh tailw dash wouldn't find tailwindcss-dash-docset, because of the hyphen.

i could check and do a PR if you're interested.

gharlan commented 4 years ago

gh tailwdash without the space should work.

godbout commented 4 years ago

sir, you are correct. it does work. just not the convention about fuzzy search, so it does feel a bit off. need to remember not to add a space especially for this workflow. hence opening this issue! if you feel it's not necessary, then please close it. else i can help. thanks! (i use your Workflow every day and love it.)

gharlan commented 4 years ago

The space does not fit in the current design. The space is the separator for the different command arguments, like in gh foo/bar issues. So in gh tailw dash, tailw would be the repo, and dash a sub command.

I always type without the space in fuzzy searches. For example here on github:

Bildschirmfoto 2020-09-16 um 16 24 31

godbout commented 4 years ago

fair enough. didn't know about the commands actually. but it's probably because i would never type the whole repo name! thanks.

gharlan commented 4 years ago

but it's probably because i would never type the whole repo name! thanks.

I also never type the whole repo name, but I use tab for completion.

godbout commented 4 years ago

didn't even know we could use tab in Alfred 😂️ shift+tab actually. but i always use fuzzy search. anyways, good to know. learned something. thanks!