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

Out-ConsoleGridView -OutputMode Single - cannot select anything #79

Closed
hjorslev opened this issue Mar 31, 2020 · 3 comments · Fixed by #107
Closed

Out-ConsoleGridView -OutputMode Single - cannot select anything #79

hjorslev opened this issue Mar 31, 2020 · 3 comments · Fixed by #107
Labels
enhancement New feature or request Module-ConsoleGuiTools This issue is about Microsoft.PowerShell.ConsoleGuiTools

Comments

@hjorslev
Copy link

hjorslev commented Mar 31, 2020

Steps to reproduce

Get-Process | Out-ConsoleGridView -OutputMode Single

image

Expected behavior

An option to select one of the entries. If I run Out-GridView -OutputMode Single I can select one entry and have it returned back on the console:
image
image

Actual behavior

As far as I can see I have no option of selecting an item and have it returned when I run Get-Process | Out-ConsoleGridView -OutputMode Single. I have tried to select and pressed Space and Enter to select but I am still stuck in the menu and can only exit it by pressing F9.

Environment data

$PSVersionTable:

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     0.4.1                 Microsoft.PowerShell.ConsoleGuiToo… {Out-ConsoleGridView, ocgv}
@TylerLeonhardt
Copy link
Member

Yep looks like this parameter was never handled in the code.

@TylerLeonhardt TylerLeonhardt added enhancement New feature or request Module-ConsoleGuiTools This issue is about Microsoft.PowerShell.ConsoleGuiTools labels Mar 31, 2020
@yanrez
Copy link

yanrez commented Apr 15, 2020

I hit the same problem. I'm using "-OutputMode Single" and expected dialog to close on Enter with line I've selected.
Multi selection is also non-intuitive - not being able to close on Enter, nor using Insert for marking lines is very annoying behavior :(

@tig
Copy link
Collaborator

tig commented Apr 17, 2020

I hit the same problem. I'm using "-OutputMode Single" and expected dialog to close on Enter with line I've selected.

This is fixed in a combination of

  1. A PR to fix PR Remove -PassThru switch and make it default #81 - Fix PR #81 #86

  2. A PR that introduces a status bar with ESC/ENTER support for Close/Accept. Fix PR #81 #86

Multi selection is also non-intuitive - not being able to close on Enter, nor using Insert for marking lines is very annoying behavior :(

I've filed this against Terminal.gui: gui-cs/Terminal.Gui#385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Module-ConsoleGuiTools This issue is about Microsoft.PowerShell.ConsoleGuiTools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants