Giter Club home page Giter Club logo

zsh-yarn-completions's People

Contributors

chrisands avatar hallettj avatar hhatto avatar muuki88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zsh-yarn-completions's Issues

_alternative:71: permission denied:

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

Autocompletion for file paths and available .bin commands

๐Ÿ‘‹ @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:

  1. CLI commands added by installed modules, e.g.

    yarn install ts-node
    yarn ts[tab] โ†’ yarn ts-node
  2. 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! โœจ

Completion for "yarn workspaces"

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.