2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 12:43:48 +00:00
nushell/tests/fixtures
Anton Sagel 6600b3edfb
Expand multiple dots in path in completions ()
# Description
This is my first PR, and I'm looking for feedback to help me improve! 

This PR fixes  by expanding the path prior to parsing it.
Also I've removed some unused code in
[completion_common.rs](84e92bb02c/crates/nu-cli/src/completions/completion_common.rs
)
# User-Facing Changes

Auto-completion for "cd .../" now works by expanding to "cd ../../". 

# Tests + Formatting

Formatted and added 2 tests for triple dots in the middle of a path and
at the end.
Also added a test for the expand_ndots() function.
2024-09-09 14:39:18 -04:00
..
completions Expand multiple dots in path in completions () 2024-09-09 14:39:18 -04:00
cp use uutils/coreutils cp command in place of nushell's cp command () 2023-09-08 13:57:38 -05:00
dotnu_completions Force completers to sort in fetch() () 2024-07-03 06:48:06 -05:00
eval Exit early when encountering parsing errors () 2023-09-05 14:36:37 +02:00
formats Msgpack commands () 2024-04-26 06:23:16 -05:00
lsp Add completions.sort option () 2024-08-05 20:30:10 -04:00
partial_completions Force completers to sort in fetch() () 2024-07-03 06:48:06 -05:00
quoted_completions Fix file completions which contains glob pattern () 2024-02-08 06:42:50 +08:00