zap-zsh / zap

:zap: Zap is a minimal zsh plugin manager
https://www.zapzsh.com/
GNU General Public License v3.0
963 stars 35 forks source link

Feat: Single file plugins/compleaters #20

Open simsrw73 opened 1 year ago

simsrw73 commented 1 year ago

zapplug "https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/git/git.plugin.zsh"

zapcmp "https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker"

Cobalt-Inferno commented 1 year ago

Pull request https://github.com/zap-zsh/zap/pull/26 patches this in.

wintermi commented 1 year ago

Single file or local plugin (directory) can be installed via:

# Single File
plug "$HOME/.config/zsh/aliases.zsh"

# Local Plugin
plug "$HOME/code/supercharge"
simsrw73 commented 1 year ago

Single file or local plugin (directory) can be installed via:

# Single File
plug "$HOME/.config/zsh/aliases.zsh"

# Local Plugin
plug "$HOME/code/supercharge"

This doesn't satisfy the feat request above. It doesn't add anything useful that zsh doesn't provide natively. IMO, a plugin manager, at a minimum, should support two features: 1) install plugins; 2) manage updates. This does neither with regards to the single file plugins mentioned above. I love and applaud the minimal goal. But for my purposes, Zap fails for leaning to far toward the minimal and not being complete. I was hoping for something between the two extremes of a simple handwritten load function and one of the many over-the-top 10k lines of wacky. This is too close to the former; that's fine if that is your goal; no offense intended. For now, for me, I've settled on antidote, probably still a little much, but it meets my min reqs for a plugin manager.

wintermi commented 1 year ago

My mistake, I misunderstood the original request. So reopened.

daweiyuanzhang commented 1 year ago

Hello, may I ask when this function will be implemented?

My mistake, I misunderstood the original request. So reopened.