This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Description
Motivation
Oftentimes, the output of a command is too large to fit on a single screen. Customers need the ability to scroll forward and back through the content for readability. The PowerShell Pager is a virtual terminal pager utility implementation similar to linux equivalents more and less. The PowerShell pager is not intended to replace less, instead be an enhancement to more.
Scenerios
The PowerShell pager should support the ability to display cmdlet help similar to the parameter -ShowWindow
The PowerShell pager should have a cmdlet Format-Page that supports pipeline input of content.
Get-Service | Where-Object {$_.status -eq “Stopped”} | Format-Page
Version 1.0 pager features
Planned features of the initial 1.0 release of the PowerShell Pager to support page navigation.
Feature | KeyBinding
- Top of File | HOME
- Bottom of file | END
- Next page | SPACEBAR
- Previous page | b
- Exit | q
- Down one line | UP ARROW
- Up one line | DOWN ARROW
Planned features of Version.Next release
To support the customer in identifying specific data, search with highlight will be added to the pager. Within the paging utility, a user will be able to specify a argument to be highlighted.
Feature | KeyBinding
- Search forward | /
- Search backward | \
- Next forward match | f
- Next backward match | b
Alternative Proposals
- The addition of Half page navigation similar to less. Keybindings move the content 1/2 page forward or backward.