2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-01 06:43:53 +00:00
nushell/tests/fixtures/completions
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
..
.hidden_folder Fix completions for directories with hidden files () 2024-02-26 12:14:19 -06:00
another nu-cli: added tests for file completions () 2022-04-20 16:54:00 +12:00
directory_completion Expand multiple dots in path in completions () 2024-09-09 14:39:18 -04:00
test_a nu-cli: added tests for file completions () 2022-04-20 16:54:00 +12:00
test_b nu-cli: added tests for file completions () 2022-04-20 16:54:00 +12:00
.hidden_file nu-cli: added tests for file completions () 2022-04-20 16:54:00 +12:00
custom_completion.nu nu-cli/completions: add custom completion test () 2022-05-14 15:09:41 -05:00
nushell Revert "nu-cli/completions: better fix for files with special characters ()" () 2022-04-29 13:11:41 -05:00