nu-complete: display values
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 40.5k
- Forks
- 2.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 85
Description
Related problem
Other shells discern between the actual value being inserted and the one being displayed.
This enables shorter values for multiparts completion like paths where only the current segment is shown.
Additionally, some shells provide the ability to set the color (either by ansi escape sequence or additional parameter) to highlight specific values and paths (LS_COLORS).
Describe the solution you'd like
A way to return display values additionally to the ones to be inserted from custom completions. As well as the color if possible.
Describe alternatives you've considered
No response
Additional context and details

related #5291
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Nushell's custom completion handling and the related issue #5291. Define how completions can provide inserted values separately from display values, including the requested color support, and verify that multipart path completions show the shorter display text while inserting the full value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100