Skip to content

nu-complete: display values #5292

@rsteube

Description

@rsteube

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:completionsIssues related to tab completionA:line-editorIssues related to reedlineA:syntax-highlightingBugs or performance issues with the syntax highlighting logiccategory:enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions