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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment
  • Loading branch information
merelymyself committed Dec 8, 2022
commit cfdc1f1341fbf0c442cbbb4fd25739acf5baaba9
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 @@ -141,7 +141,7 @@ pub fn file_path_completion(
file_name.push(SEP);
}

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