8000 Handle some annoyances in fish external completer by scarlet-storm · Pull Request #1955 · nushell/nushell.github.io · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Handle some annoyances in fish external completer #1955

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

Merged
merged 2 commits into from
Jun 26, 2025

Conversation

scarlet-storm
Copy link
Contributor

No description provided.

In case the completion string has any singlequotes,
escape them before passing it to external fish command.
Else the completion will fail due to unmatched quotes.

eg. vim '/home <tab>
This fixes completions for paths which have "~".
~ expansion will no longer work after the path is enclosed
in double quotes, hence expand the path before returning the completion
so that subsequent completions will continue to work

eg. vim ~/Doc <tab> <tab>
The second completion will not work as the path will be enclosed with
double quotes after first completion
@scarlet-storm scarlet-storm changed the title Handle some corner cases in fish external completer Handle some annoyances in fish external completer Jun 26, 2025
@fdncred fdncred merged commit 670b230 into nushell:main Jun 26, 2025
2 checks passed
@fdncred
Copy link
Contributor
fdncred commented Jun 26, 2025

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0