PowerShell / ConsoleGuiTools

Modules that mix PowerShell and GUIs/CUIs!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.ConsoleGuiTools
MIT License
794 stars 60 forks source link

Fixes #116 - Adds a `MinUI` switch to OCGV for a minimal look & feel #117

Closed tig closed 2 years ago

tig commented 4 years ago

Fixes #116

This PR adds a -MinUi feature that hides all UI except for the list of items.

Once you use ocgv a lot you find the status bar and filter edit box are redundant and in the way.

Get-PSProfile | Out-ConsoleGridView -OutputMode Single -Title 'PS Profiles' -Filter ISE"

image

Get-PSProfile | Out-ConsoleGridView -OutputMode Single -Title 'PS Profiles' -Filter ISE -MinUi"

image

I imagine someone might argue that the Filter edit box should be included with -MinUI. I've left it out because a) the -Filter parameter makes it easy to specify up front and b) a future enhancement could be a keyboard shortcut that toggled it on and off (e.g. F3) (this would be independent of -MinUI)...or another parameter (e.g. -ShowFilter) could do that.

tig commented 4 years ago

This PR is dependent on #115

tig commented 2 years ago

@andschwa this PR is still relevant. I'd love to see it incorporated. I've fixed the merge issue and a visual artifact that appeared with the latest Terminal.Gui.

tig commented 2 years ago

@andschwa This PR is ready for review.

tig commented 2 years ago

Closing because this was already merged with https://github.com/PowerShell/GraphicalTools/pull/166,