1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-27 08:07:25 +01:00
nushell/crates/nu-cli
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
..
src Expand multiple dots in path in completions () 2024-09-09 14:39:18 -04:00
tests Expand multiple dots in path in completions () 2024-09-09 14:39:18 -04:00
Cargo.toml Setup global cargo lint configuration () 2024-08-28 23:37:17 +02:00
LICENSE Fix rest of license year ranges () 2023-04-04 09:03:29 +12:00
README.md Add top-level crate documentation/READMEs () 2024-07-14 10:10:41 +02:00

This crate implements the core functionality of the interactive Nushell REPL and interfaces with reedline. Currently implements the syntax highlighting and completions logic. Furthermore includes a few commands that are specific to reedline

Internal Nushell crate

This crate implements components of Nushell and is not designed to support plugin authors or other users directly.