Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-in Mode for prediction results #3887

Open
1 task done
StevenBucher98 opened this issue Nov 28, 2023 · 0 comments
Open
1 task done

Opt-in Mode for prediction results #3887

StevenBucher98 opened this issue Nov 28, 2023 · 0 comments
Labels
Area-Predictors Label for issues related to predictors Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@StevenBucher98
Copy link
Collaborator

StevenBucher98 commented Nov 28, 2023

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

It may eventually make sense to have a predictor option to make listview results be "asked" for by the user or triggered by a keyhandler. It could solve two problems:

  1. Accessibility, (after we fix screen reader issues currently), it would be easier to navigate prediction results via screen reader if the user is able to explicitly opt-in to getting the results and have some kind of indicator that prediction results are available.
  2. Off box calls to predictors - since the user is opting in to getting predictor results, we could allow for a longer time out as the user is specifically asking for this

Proposed technical implementation details (optional)

Include a PSreadLine option for a getting predictions opt in. I.e something like

Set-PSReadLineOption -PredictionViewStyle OptIn

and then when a user types something, they can press a key to get ListView to render based on currently typed content:

PS>Get-
<Presses F5>
<-/9>                                                                   <History(3) Az Predictor(6)>
> Get-alias                                                                                [History]
> Get-ChildItem                                                                            [History]
> Get-ChildItem | Show-ObjectTree                                                          [History]
> Get-AzSubscription                                                                  [Az Predictor]
> Get-AzResourceGroup                                                                 [Az Predictor]
> Get-AzRoleAssignment -Scope '/subscriptions/00000000-0000-0000-0000-00000000000000… [Az Predictor]
> Get-AzVM                                                                            [Az Predictor]
> Get-AzStorageAccount -Name 'ContosoStorage' -ResourceGroupName 'ContosoResourceGro… [Az Predictor]
> Get-AzKeyVaultSecret -Name 'secret*' -VaultName 'keyvault01'                        [Az Predictor]

Some clearer naming may be required.. 😄

Related issues: #3581 #3607 #2504

@StevenBucher98 StevenBucher98 added the Issue-Enhancement It's a feature request. label Nov 28, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 28, 2023
@StevenBucher98 StevenBucher98 added the Area-Predictors Label for issues related to predictors label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Predictors Label for issues related to predictors Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

1 participant