-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework the plugin_entry function #11
Comments
Yes. and also do not add entry if there is none of those. |
In that case (which is rare), we should display a warning message:
Or something better :) |
Correct.
we should have zpm_message(char* message, int error) or zpm_message(int error, char* format, ...) for that. Furthermore, it migth help fancying the output. |
Yes, the output correctly if pretty raw. Any proposals regarding fancying out? |
By the way, I fully agree with adding a |
Probably |
In my opinion, the implementation for this would be to have get_plugin_entry_point() loop through all files in the plugin directory, add what is needed to
should this be recursive? |
I was thinking having two functions:
Both functions should be used to add conditions around these lines: https://github.com/zpm-project/zpm-zsh/blob/master/zpm.c#L105 What do you think? Edit: Corrected description what these functions should return. |
Quite the same 😄 . |
The current Shouldn't we add an entry for every match we find? I think |
I believe it should return the first occurrence. At least that was my intention. Most plugins have a single-file entry point so I think we cover 99% of plugins by just sourcing in that order (also the logic is shared with most zsh plugin managers). I believe |
^^ This is wrong. See #37 and https://github.com/zsh-users/antigen#notes-on-writing-plugins. My implementation is faulty. |
See #9 (comment)
The text was updated successfully, but these errors were encountered: