keith / zsh-xcode-completions

Zsh completion for the Xcode command line tools
MIT License
57 stars 5 forks source link

Subdirectory projects, workspaces #1

Open kastiglione opened 8 years ago

kastiglione commented 8 years ago

Thanks for sharing this project!

Is it possible to make the actions for -project and -workspace fall back to recursive globs if there are no matches for globs in the current directory? The repo I work on has more than one .xcodeproj/.xcworkspace, and they're structured into nested directories.

keith commented 8 years ago

Yea, we should definitely do this! I'll try to get to this shortly. Feel free to submit a PR in the meantime. Should be an adjustment to this line and the related workspace one.

kastiglione commented 8 years ago

Thanks, yes I just made that change locally. However **/*.xcodeproj is too slow for my repo. What would you say about falling back to file completion when no projects are found locally?

keith commented 8 years ago

Seems reasonable. We can check if the result == "" or not. And then fallback