Improve ZSH completions
Closed
SR
3y ago+359+359+012345678901234567890123456789-535-535-012345678901234567890123456789
Refactoring the code and adding improvements
Autocomplete for --define flag
- Reads the environment variables and autocomplete them in json format
- Autocomplete the environment variable
process.env.NODE_ENV

Autocomplete for --load flag
Auto complete file extensions with valid loaders

Fixed bug when autocompleting recent packages
Previously, when adding multiple packages in the same command, the autocomplete did not work well.
bun add react vite esbuild nanoid
Before:

After:
Segmentation in
- recent
- popular

Autocomplete for remove command
Segmentation in
- Dependencies
- Dev Dependencies
- Optional Dependencies
- Peer Dependencies

Segmentation for the run command
Segmentation in
- files
- binaries
- scripts
