Open
Description
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:
- 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.
- 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.. 😄