fix & feat: enhanced completion for zsh #552
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I fixed zsh completion which is not working properly (like #549), now files can be completed. What's more, I add a feature that when triggering
Tab
where dependencies should be entered, the dependencies of the elf will pop out. Here's a screenshot:If the elf is the first arg, it works, too:
In any other cases (file is not exist, or is a
.so
, or is not exist), the match fallback to the default _files match.I tried my best to test all the cases on my machine and it should be right.