nushell / nushell/nushell

nu-complete: display values

Open
#5,292 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A:completions A:line-editor A:syntax-highlighting category:enhancement
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

2022-04-22-113916_1276x305_scrot

related #5291

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.