zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.77k stars 123 forks source link

fix: delete multiple plugins at once #494

Closed vladdoster closed 1 year ago

vladdoster commented 1 year ago

Description

zinit delete <Plugin> <Plugin> ...

Closes https://github.com/zdharma-continuum/zinit/issues/57 Closes https://github.com/zdharma-continuum/zinit/issues/239

Motivation and Context

Usability

Related Issue(s)

Closes #239 Closes #57

Usage examples

zi delete --help

How Has This Been Tested?

Left side is proposed changes and right side is current Zinit.

delete output improved

Screenshot 2023-04-02 at 04 11 51 Screenshot 2023-04-02 at 04 12 28

clean doesn't run if no unloaded plugins

Screenshot 2023-04-02 at 04 13 41

improved logic

Screenshot 2023-04-02 at 04 25 52

Types of changes

Checklist:

vladdoster commented 1 year ago

@pschmitt,

I apologize for my annoying PR behavior during the last few PRs. I remembered a linked branch for the issue and moved my changes to the branch.

Furthermore, I'll be more diligent with my PRs to avoid it happening again :^) .

vladdoster commented 1 year ago

I'll fix the documentation in a separate PR. See PR in zshelldocs.

Good catch on the " to ' fix.

pschmitt commented 1 year ago

Aight, let's gooooo!