Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Tilde Expansion #1396

Closed
icp1994 opened this issue Nov 2, 2022 · 4 comments
Closed

Disable Tilde Expansion #1396

icp1994 opened this issue Nov 2, 2022 · 4 comments
Labels
bug Something isn't working nushell

Comments

@icp1994
Copy link

icp1994 commented Nov 2, 2022

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

@rsteube
Copy link
Member

rsteube commented Nov 2, 2022

There's no config available in general until i get carapace-sh/carapace#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/"}]

@rsteube rsteube added bug Something isn't working nushell labels Nov 2, 2022
@icp1994
Copy link
Author

icp1994 commented Nov 2, 2022

I see, thanks for looking.

@rsteube
Copy link
Member

rsteube commented Nov 3, 2022

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

@icp1994
Copy link
Author

icp1994 commented Nov 3, 2022

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

@rsteube rsteube closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nushell
Projects
None yet
Development

No branches or pull requests

2 participants