carapace-sh / carapace-bin

multi-shell multi-command argument completer
https://carapace.sh
MIT License
885 stars 48 forks source link

Disable Tilde Expansion #1396

Closed icp1994 closed 1 year ago

icp1994 commented 1 year ago

With nushell, is there a carapace config/flag that would disable tilde expansions in path completions?

rsteube commented 1 year ago

There's no config available in general until i get https://github.com/rsteube/carapace/pull/539 done. Tilde is actually bit of a hassle but i should have fixed that already for zsh. Have to investigate it but quite possible that this is releated to how nushell itself handles ~ as this is a bit weird:

nu ❯ carapace bat nushell bat '~/Do'
[{"value":"/home/rsteube/Documents/"},{"value":"/home/rsteube/Downloads/"}]

esh ❯ carapace bat nushell bat '~/Do'
[{"value":"~/Documents/"},{"value":"~/Downloads/"}]
icp1994 commented 1 year ago

I see, thanks for looking.

rsteube commented 1 year ago

@icp1994 weirdly enough workaround: if you rename carapace to carapace.sh and update your nu config accordingly it seems to work.

icp1994 commented 1 year ago

I symlinked /usr/bin/carapace to ~/bin/carapace.sh and it works after updating config!