Closed OliverJAsh closed 6 years ago
The following opinions are personal. If there are something wrong, please help me correct it.
I have browsed that plugin just now. Here are my conclusion:
mklabs/yarn-completions is written in JavaScript while this plugin is written in Rust. To be honest, I have tried to write this plugin in JavaScript before. However, when I just type yarn run
and press the <tab>
key, there is one or two seconds delay before the auto completions result printed. JavaScript code is not statically compiled so it needs to compile the JavaScript code at runtime, while Rust is fast and there is no needs to be compiled at runtime.
mklabs/yarn-completions supports a lot of yarn commands while this plugin just supports yarn run
and yarn remove
now. However, this plugin just was written three days ago and you can check the first commit: https://github.com/g-plane/zsh-yarn-autocompletions/commit/58e4eb8ae0b37056d9edfba7a819763d2e33e6e2 (Date is 2018-03-19). There is a plan that this plugin will support more yarn commands such as yarn add
and yarn add --dev
(You can check https://github.com/g-plane/zsh-yarn-autocompletions/issues/5). BTW, any PRs are welcomed.
mklabs/yarn-completions supports Fish, Zsh and Bash. This plugin just supports Zsh.
This plugin has no runtime dependencies while mklabs/yarn-completions needs some npm packages.
Any discussion and advices are welcomed.
Thank you for the detailed information, and this project! 😄
Hi there!
I'm curious what the differences in goals and current features are between this and https://github.com/mklabs/yarn-completions?
Thanks, Olly