Commit graph

15 commits

Author SHA1 Message Date
Andrea Alberti 95ba7d1dd4
refactor: implemented parsing of options for self-update using .zinit-parse-opts; extended number of supports variants, options
Follows suggestions from https://github.com/zdharma-continuum/zinit/pull/762#pullrequestreview-3811990006

Co-authored-by: vladislav doster <mvdoster@gmail.com>
2026-03-03 09:22:19 +01:00
Joseph Lee 3186c68346
fix completions in zinit update (#701) 2025-02-18 17:03:06 +01:00
vladislav doster b7b8347cad
fix: compile command logic when using id-as ice (#619)
- Updated README.md `compiling` section
- Compile commands now work with `id-as` ice
- Compile command options added to tab completion  

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-03 23:43:48 -06:00
vladislav doster 3f4b685622
feat(delete): fix unsetting plugin state & add --debug / --quiet flags (#622)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-01-18 13:40:55 -06:00
vladislav doster e458e8288e
refactor: clist subcommand renamed to completions (#583)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-30 18:46:19 -05:00
Vladislav Doster 930b25ee3c
feat: refactor debug commands
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-01 04:45:56 -05:00
Vladislav Doster 6c82d6788d fix: cleanup style, naming, and completion
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-10 12:32:16 +00:00
Vladislav Doster a86590762a
feat: refactor ls, list, and loaded commands
Issues addressed:

1. Confusing and unintuitive command names

  Currently, two commands `loaded` and `list` will list installed
  plugins and a single command `ls` lists installed snippets. The namea
  don't make much sense or give context to their behavior, nor does
  having two commands with identical behavior.

This PR removes the three commands in favor of two new commands
`list-snippets` and `list-plugins`. The names align with the action they
perform.

2. Uninformative output

  Current output is hard to grok.

This PR cleans up the output format and uses color to help convey
information.

3. Incorrect

  Output does not account for various situations with the only way to
  fix is to reload Zsh session which would not always fix it. See images
  below for the aforementioned situations.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-09 21:45:15 -05:00
Vladislav Doster 9eee215e3f
feat: delete subcommand refactor
- `delete` subcommand can now take multiple arguments
- improved logic for `--all`, `--clean` flags
- improved log output
- now cleans up broken symlinks

```
zinit delete <Plugin> <Plugin> ...
```

Closes #57
Closes #239

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-02 04:38:38 -05:00
Vladislav Doster b8d12e555d
feat: zinit completion improvements
- Add all subcommand short & long flags
- Handle mutually exclusive options. For example, a user shouldn't be
  able to select the `--all` flag and a plugin in `zi delete` but should
  be able to select the `--yes` or `--quiet`
- Handle the zinit limitation of only taking one plugin in various
  commands (i.e., delete, uncompiled)

Examples:
- Don't show users plugins in the `zi delete` when they have already
  selected one to avoid an error.
- Only let the user select one flag option in `zinit time`.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-03-27 05:00:45 -05:00
Vladislav Doster bfb01e65d7 feat: display version via version sub command
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-17 06:14:46 -06:00
vladislav doster be1533552a
maint: re-format _zinit (#392)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-05 10:11:54 -05:00
Sebastian Gniazdowski 9013e6372b _zinit: Better glob for completions 2020-01-27 17:30:44 +01:00
Sebastian Gniazdowski 9c87258f77 _zinit: Mute a warncreateglobal 2020-01-20 06:31:24 +01:00
Sebastian Gniazdowski 1ca8f6856c PROJECT RENAME Zplugin → Zinit. Hold your thumbs that everything will
work seamlessly.
2020-01-18 10:02:05 +01:00
Renamed from _zplugin (Browse further)