carapace-sh / carapace

command argument completion generator for spf13/cobra
https://carapace.sh
Apache License 2.0
290 stars 8 forks source link

Powershell: backslash filepath #971

Open rsteube opened 6 months ago

rsteube commented 6 months ago

Request

Powershell on Windows supports the backslash (\) filepath separator. This is rather unique as other shells use slash (/).

Since Powershell also supports slash, so so far the decision was made to only support this. Adding backslash increases complexitiy and poses some issues with prefix filtering.

Seems a mixture of slash and backslash might be possible so support for it might be added at some point.

Proposed solution

Keep the current prefix and continue with / (even if it is mixed).

Anything else?

related https://github.com/rsteube/carapace-bin/issues/2035