romainberger / yarn-completion

Autocomplete for your projects scripts with yarn
6 stars 2 forks source link

Clarification: Completion #2

Open calvin-cdev opened 2 years ago

calvin-cdev commented 2 years ago

hi! thanks for making this package and script :smile:

I have a question. Is this intended only to list the available scripts and not to auto complete a script?

For example, let's say i have these scripts in a package.json

{
  start:dev
  start:prod
}

If i type yarn and then tab, I'll see start:dev start:prod But if i try to use tab to auto complete the script like yarn start:d then tab, I get yarn start:start:

ChromeQ commented 3 months ago

I also find this slightly annoying bug but the script seems to only list the scripts under the package.json, doesn't seem to take the current input into account.

Did you ever find a solution to this @calvin-cdev ?

calvin-cdev commented 3 months ago

I also find this slightly annoying bug but the script seems to only list the scripts under the package.json, doesn't seem to take the current input into account.

Did you ever find a solution to this @calvin-cdev ?

I ended up using a different auto-completion tool. I can't remember what it was though since I've been on pnpm for a while now.