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

fix: Completions of paths with spaces and single quotes #20

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Conversation

domsleee
Copy link
Owner

@domsleee domsleee commented Mar 6, 2024

fixes: #19

Any completion returned by nushell starting and ending with a backtick (`) is considered a path.

This changes the backticks to single quotes, and replaces all single quotes in the completion with double single quotes - this seems to be the standard way for escaping single quotes in a single-quoted string in powershell.

There may be some other cases to consider, but this is a good start~

@domsleee domsleee merged commit ccbdc57 into main Mar 6, 2024
11 checks passed
@domsleee domsleee mentioned this pull request Mar 6, 2024
@domsleee domsleee deleted the fix-spaces branch March 6, 2024 12:42
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.

Files with spaces in their name are not tab-completed correctly
1 participant