Skip to content

Provide a new parameter to better collaborate with PSCompletions in PowerShell #3168

@abgox

Description

@abgox

Request

  • PSCompletions is a completion manager for a better and simpler tab-completion experience in PowerShell.

  • This is the current effect when PSCompletions and Carapace collaborate.

  • The help information and completion items are together, which I think is not clear enough.

    Image

  • I guess it might be implemented in the following way.

    [CompletionResult]::new('agent', 'agent (Work with agent tasks (preview))', [CompletionResultType]::ParameterName, ' ')
  • But it is not the standard way in PowerShell.

  • To be compatible with previous ways, I suggest adding a parameter to change it to the standard way.

    carapace _carapace --tooltip | Out-String | Invoke-Expression
    [CompletionResult]::new('agent', 'agent', [CompletionResultType]::ParameterName, 'Work with agent tasks (preview)')
  • So, in PSCompletions, it can display the best effect like this.

    Image

Proposed solution

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfundFundable with polar.sh

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions