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

Add quotes to hash file autocomplete #7398

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
quote filenames with hashtag
  • Loading branch information
merelymyself committed Dec 8, 2022
commit 148a3e0517b436fbd64a890d1fd313d0127a3da4
2 changes: 1 addition & 1 deletion crates/nu-cli/src/completions/file_completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub fn file_path_completion(
}

// Fix files or folders with quotes
if path.contains('\'') || path.contains('"') || path.contains(' ') {
if path.contains('\'') || path.contains('"') || path.contains(' ') || path.contains('#') {
path = format!("`{}`", path);
}

Expand Down