yarn-completion icon indicating copy to clipboard operation
yarn-completion copied to clipboard

Incorrect suggestion with script name with colon `:`

Open ChromeQ opened this issue 2 years ago • 0 comments

I have some scripts in my package.json which contain the : character, this is common for commands such as build:dev or build:prod and lint:fix or lint:errors but this bash script will not complete the command when pressing tab key after the :

Example: package.json with several scripts with colon: image

type the start of a script name and hit tab: image

my choices are expo:prebuild or expo:preview so it's good to check in with me which to autocomplete, type the b character for prebuild and press tab again: image

My bash skills are not good enough to tackle this myself so I'm hoping you can do a quick fix or suggest something as it works for the npm-completion script. Thanks

ChromeQ avatar Nov 03 '23 03:11 ChromeQ