nushell/crates/nu-path/src
Anton Sagel 6600b3edfb
Expand multiple dots in path in completions (#13725)
# Description
This is my first PR, and I'm looking for feedback to help me improve! 

This PR fixes #13380 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
..
assert_path_eq.rs Path expansion no longer removes trailing slashes (#12662) 2024-05-01 17:28:54 -05:00
components.rs Fix trailing slash in PWD set by cd (#12760) 2024-05-04 12:38:37 +03:00
dots.rs Expand multiple dots in path in completions (#13725) 2024-09-09 14:39:18 -04:00
expansions.rs Path migration part 3: $nu paths (#13368) 2024-08-01 10:16:31 +02:00
form.rs Edit path form doc comments (#13358) 2024-07-12 10:23:51 +02:00
helpers.rs Path migration part 3: $nu paths (#13368) 2024-08-01 10:16:31 +02:00
lib.rs Path migration part 3: $nu paths (#13368) 2024-08-01 10:16:31 +02:00
path.rs Clippy fixes from stable and nightly (#13455) 2024-07-31 20:37:40 +02:00
tilde.rs Clippy fixes from stable and nightly (#13455) 2024-07-31 20:37:40 +02:00
trailing_slash.rs Fix trailing slash in PWD set by cd (#12760) 2024-05-04 12:38:37 +03:00