We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13d5a15 commit 114b123Copy full SHA for 114b123
crates/nu-cli/src/completions/completion_common.rs
@@ -284,6 +284,8 @@ pub fn complete_item(
284
pub fn escape_path(path: String, dir: bool) -> String {
285
// make glob pattern have the highest priority.
286
if nu_glob::is_glob(path.as_str()) {
287
+ let pathbuf = nu_path::expand_tilde(path.clone());
288
+ let path = pathbuf.to_string_lossy();
289
return if path.contains('\'') {
290
// decide to use double quote, also need to escape `"` in path
291
// or else users can't do anything with completed path either.
0 commit comments