Opt-in Mode for prediction results

Aperta
#3,887 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp, powershell
Ambito
cli

Direzione di ricerca

Start by reading related issues #3581, #3607, and #2504, then inspect how prediction view options and key handlers are currently exposed. Done should include an opt-in prediction setting, a defined key-triggered ListView flow, and agreed behavior for accessibility and predictor timeouts.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Area-Predictors Issue-Enhancement Needs-Triage :mag:
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

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.