Skip to content

Prediction NextSuggestion or similar binding that also works with inline predictions #3362

Open
@TBBle

Description

@TBBle

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

Trying out the newly-default inline prediction, and particularly combined with https://github.com/PowerShell/CompletionPredictor, I wanted to have Tab and Shift+Tab work with the predictions rather than the completions, so that I get history (and any other plugins) included in the Tab-complete keyboard habit for free, without losing screen real-estate to the list-view (or having to toggle F2 every time I want to choose a different prediction).

However, the NextSuggestion and PreviousSuggestion bindings only work in list view. They default to unbound, so the arrow keys you naturally use in the prediction list view are clearly magic for list view, not using those bindings.

Proposed technical implementation details (optional)

Either

  • NextSuggestion and PreviousSuggestion should work for inline predictions too (which doesn't seem too dangerous a change to me because they default to unbound); or
  • another pair of Prediction key bindings that work with inline predictions, e.g. NextInlineSuggestion and PreviousInlineSuggestion.

I'm clearly assuming that the underlying mechanism is the same so this would be a relatively easy feature to add, but that's just an assumption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions