nushell/crates/nu-cli/src
goldfish d4eeef4bd1
Fix tab completion order of directories to consistent with order of files (#10102)
# Description

fixed #10020

Tab completion order of directories is inconsistent with order of files.
This problem is caused by sorting folder names containing a trailing
slash.
This PR fixes the problem.

# User-Facing Changes

Users get the same order of suggestions in the tab completion for both
file and directory.


![image](https://github.com/nushell/nushell/assets/37319612/208e5a01-01a2-489c-b41a-36ece999f971)


# Tests + Formatting

```
$ toolkit check pr

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
```

# After Submitting

nothing
2023-08-24 06:19:13 -05:00
..
commands Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
completions Fix tab completion order of directories to consistent with order of files (#10102) 2023-08-24 06:19:13 -05:00
menus Fix a crash when moving the cursor after accepting a suggestion from the help menu (#9784) 2023-08-14 05:58:39 -05:00
config_files.rs Fix config creation during printing (#9353) 2023-06-04 22:04:28 +03:00
eval_cmds.rs Move CLI related commands to nu-cli (#8832) 2023-04-10 10:56:47 +12:00
eval_file.rs Rename main to script name when running scripts (#9948) 2023-08-12 05:58:49 +12:00
lib.rs cratification: move the bytes command to nu-cmd-extra (#9509) 2023-06-23 12:23:08 -07:00
nu_highlight.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
print.rs allow print to take data as input again (#9823) 2023-07-27 21:40:25 +02:00
prompt_update.rs remove nu_cli crate dependency from nu_std (#8807) 2023-04-08 13:53:43 +02:00
prompt.rs Fix default prompt indicators (#9914) 2023-08-05 04:47:46 +12:00
reedline_config.rs add keybinding for search-history (#9930) 2023-08-06 06:59:06 -05:00
repl.rs Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
syntax_highlight.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
util.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00