domsleee / posh-tabcomplete

Blazing fast tab completion for powershell.
4 stars 1 forks source link

fix: Completions of paths with spaces and single quotes #20

Closed domsleee closed 7 months ago

domsleee commented 7 months ago

fixes: #19

Any completion returned by nushell starting and ending with a backtick (`) is considered a path.

This changes the backticks to single quotes, and replaces all single quotes in the completion with double single quotes - this seems to be the standard way for escaping single quotes in a single-quoted string in powershell.

There may be some other cases to consider, but this is a good start~