chrisands / zsh-yarn-completions Goto Github PK
View Code? Open in Web Editor NEWYarn completions for Z-shell that supports yarn workspaces
License: MIT License
Yarn completions for Z-shell that supports yarn workspaces
License: MIT License
got an error message when I press Tab
key under a workspace namespace.
e.g.
yw my-project | # press Tab key
yw my-project jest ./packages/a| # press Tab key
๐ @chrisands, great plugin!
Sorry if Iโm repeating someone elseโs question but I wonder if it is possible to support these two autocompletion sources:
CLI commands added by installed modules, e.g.
yarn install ts-node
yarn ts[tab] โ yarn ts-node
Local file path, e.g.
yarn install ts-node
yarn ts[tab] โ yarn ts-node
yarn ts-node scr[tab] โ yarn ts-node scripts/
yarn ts-node scripts/d[tab] โ yarn ts-node scripts/do-something.ts
Alternative use, if ts-node --transpile-only
is aliased as exe
in package.json
โ scripts
:
yarn ex[tab] โ yarn exe
yarn exe scr[tab] โ yarn exe scripts/
yarn exe scripts/d[tab] โ yarn exe scripts/do-something.ts
Thanks a lot for your work! Autocompletion for scripts and workspaces works like a charm! โจ
The completion for yarn workspaces
shows these commands:
yarn workspaces
info -- Display the workspace dependency tree of your current project.
run -- Run the chosen Yarn command in each workspace.
However, yarn 3.1.1 gives quite a different list when running yarn workspaces
:
Unknown Syntax Error: Command not found; did you mean one of:
0. yarn workspaces list [--since] [-R,--recursive] [-v,--verbose] [--json]
1. yarn workspaces focus [--json] [--production] [-A,--all] ...
2. yarn workspaces foreach [-R,--recursive] [--from #0] [-A,--all] [-v,--verbose] [-p,--parallel] [-i,--interlaced] [-j,--jobs #0] [-t,--topological] [--topological-dev] [--include #0] [--exclude #0] [--no-private] [--since] <commandName> ...
(I love that the list starts with zero...)
Could it be a question of different yarn versions? If it would it be possible to add completion for the current version of yarn, that would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.