lukechilds / zsh-better-npm-completion

Better completion for npm
MIT License
464 stars 35 forks source link

Feature request: hide pseudo-private scripts #17

Open kopach opened 4 years ago

kopach commented 4 years ago

First. I do like this tool very much, it's one of the most used plugins for me. Thank you!

Now about feature. I do have lots of scripts in my projects. To keep them clean and don't repeat myself, I prefer to group some common parts under sub-scripts, which may not make sense if executed standalone. For example:

"_watch": "...",
"watch:chromium": "npm run _watch -- 'chromium'...",
"watch:firefox": "npm run _watch -- 'firefox'...",

I will never execute _watch itself, so having it on the list of possible commands only harm.

Any chance, this plugin could have some default configuration, which I could use to hide my scripts from the list? E.g. _ on the beginning (same as people do it in JS) or any other (more unique) character. What do you think?