By default PowerShell tab completion for executables adds a .exe
extension, but carapace expects programs to not have have an extension to lazy load the completions. I was able to work around this by modifying the init script:
Invoke-Expression -Command (Out-String -InputObject (carapace.exe _carapace 'powershell')).Replace('$commandAst.CommandElements[0].Value', 'Split-Path -LeafBase -Path "$($commandAst.CommandElements[0].Value)"')
I'd expect the carapace init script to complete executables with and without the 'exe' extension by default.
carapace.exe _carapace powershell
)..exe
extension (bat.exe
)..exe
extension and tab completion works.1.0.7
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too