-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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](https://github.com/Ancient77/nushell/blob/84e92bb02c78d4bb71a045fbbe73b9351ab8d16a/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.
- Loading branch information
Showing
4 changed files
with
303 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.