Skip to content

KeyHandler to toggle through predictors sources #3383

Open
@StevenBucher98

Description

@StevenBucher98

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

Instead of typing Set-PSReadlineOption -PredictionSource <source> the user would be able to use a key handler to toggle between all the possible options for -PredictorSource and have a display note of which predictor source a user is on.

Open for discussion on the exact UI implementation.

Proposed technical implementation details (optional)

Shift + F2 to switch between different predictor sources.

PS C:\Users\stevenbucher> <Press Shift+F2>
PSReadLineOption Predictor Source now set to History

PS C:\Users\stevenbucher> <Press Shift+F2>
PSReadLineOption Predictor Source now set to HistoryAndPlugin

PS C:\Users\stevenbucher> <Press Shift+F2>
PSReadLineOption Predictor Source now set to Plugin

PS C:\Users\stevenbucher> <Press Shift+F2>
PSReadLineOption Predictor Source now set to None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-KeyHandlersLabel for issues related to key handlersArea-PredictorsLabel for issues related to predictorsIssue-EnhancementIt's a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions