g-plane / pnpm-shell-completion

Complete your pnpm command fastly.
MIT License
119 stars 10 forks source link

completion for file path #5

Open Jack-Works opened 1 year ago

Jack-Works commented 1 year ago
pnpm add -C 
            ^

completion at this position should return a path.

Currently it will return the following candidates and breaks the shell's path completion:

pnpm add -C <Tab here>
pnpm add -C --global # becomes this
--global     --save-dev   --save-peer
pnpm add -C pac<Tab here> # expect to completion for file path like packages/...
pnpm add -C --global # becomes this
--global     --save-dev   --save-peer
g-plane commented 1 year ago

It seems that PowerShell doesn't support completing file paths.