Changes F7 sample to use Out-ConsoleGridView#3435
Changes F7 sample to use Out-ConsoleGridView#3435tig wants to merge 1 commit intoPowerShell:masterfrom
Conversation
|
As a sample, the benefit of using However, if you can publish your handler script that uses |
Ok, but two points that might influence you:
|
|
I'm not aware that |
|
I forgot to mention: I've recently packaged F7History up as a PowerShell Gallery-installable module: https://github.com/gui-cs/F7History/ With this, perhaps this PR is really about just pointing to the F7History repo as a good example? Install Install-Module -Name "F7History"Add a line to import Import-Module -Name "F7History"To change the key bindings, use the Import-Module -Name "F7History" -ArgumentList @{Key = "F6"; AllKey = "Shift-F6"} |
|
The comment of the |
PR Summary
Updates the PSReadLine sample code to use
Out-ConsoleGridViewinstead of the defunct (and not cross platform)Out-GridView.Note that the old sample supported multi-select and the F7History.ps1 sample does not. It is possible to modify it to support multi-select, but doing so exposes a big question:
Out-GridVieworOut-ConsoleGridViewsupport a way for the user to determine this.PR Checklist
Microsoft Reviewers: Open in CodeFlow