nushell/crates/nu-cli/src
Wind 20aa59085b
Fix file completions which contains glob pattern (#11766)
# Description
Fixes: https://github.com/nushell/nushell/issues/11762

The auto-completion is somehow annoying if a path contains a glob
pattern, let's say if user type `ls` and it auto-completes to <code>ls
`[a] bc.txt`</code>, and user can't list the file because it's backtick
quoted.

This pr is going to fix it.

# User-Facing Changes
### Before
```
❯ | ls
`[a] bc.txt`        `a bc`
```
### After
```
❯ | ls
"[a] bc.txt"        `a bc`
```
# Tests + Formatting
Done

# After Submitting
NaN
2024-02-08 06:42:50 +08:00
..
commands Add CLI flag to disable history (#11550) 2024-01-17 09:40:59 -06:00
completions Fix file completions which contains glob pattern (#11766) 2024-02-08 06:42:50 +08:00
menus Bump Reedline for the Menu Refactor (#11658) 2024-01-28 08:26:03 -08:00
config_files.rs Fix config creation during printing (#9353) 2023-06-04 22:04:28 +03:00
eval_cmds.rs Deprecate --flag: bool in custom command (#11365) 2023-12-21 10:07:08 +01:00
eval_file.rs Convert remainder of ShellError variants to named fields (#11276) 2023-12-09 18:46:21 -06:00
lib.rs Bump Reedline for the Menu Refactor (#11658) 2024-01-28 08:26:03 -08:00
nu_highlight.rs resolving external highlight should take current PATH into account (#11618) 2024-01-24 09:02:53 -06:00
print.rs Fix incorrect handling of boolean flags for builtin commands (#11492) 2024-01-11 17:19:48 +02:00
prompt_update.rs Only run $env.PROMPT_COMMAND once per prompt (copy of #10986) (#11366) 2023-12-18 09:33:04 -06:00
prompt.rs fix shell integration markers (#11352) 2023-12-16 20:12:34 -06:00
reedline_config.rs add match-text style + config setting for ide menu (#11670) 2024-01-29 09:59:01 -06:00
repl.rs Tidy up the REPL main loop (#11655) 2024-01-31 09:32:19 -08:00
syntax_highlight.rs Unify glob behavior on open, rm, cp-old, mv, umv, cp and du commands (#11621) 2024-01-26 21:57:35 +08:00
util.rs Deprecate --flag: bool in custom command (#11365) 2023-12-21 10:07:08 +01:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00