Pager icon indicating copy to clipboard operation
Pager copied to clipboard

Support space to page down on dynamic help viewer

Open heaths opened this issue 3 years ago • 4 comments

Prerequisites

  • [X] Write a descriptive title.

Description of the new feature/enhancement

The new dynamic help is nice - pressing F1 on a cmdlet or parameter - but I am used to pressing space on the keyboard to page down like with the more command help is piped to.

Proposed technical implementation details (optional)

Please either page through pipe, or support space for the new pager for dynamic help.

heaths avatar Feb 01 '22 00:02 heaths

Move this enhancement request to the right repo.

daxian-dbw avatar Feb 01 '22 00:02 daxian-dbw

Thanks. I didn't realize the pager wasn't PSReadline-specific and had its own repo. I just filed another one (a bug, PowerShell/Pager#24) but will remember to use the Pager repo for pager issues in the future.

heaths avatar Feb 01 '22 01:02 heaths

I'd like to add that as well as space to scroll down one page (to emulate the behavior of more and how PowerShell has classically paginated long output for help), it should also support Enter for moving down one line (again, to further emulate classical pagination behavior), as well as Page-Up and Page-Down to better emulate less and make navigating long output a lot faster.

I don't know if this should be a separate issue or if it could be added to this one...

poshcodebear avatar Feb 24 '22 06:02 poshcodebear

I had a try at it because I was using the Pager in my profile to visualize the full history. https://github.com/PowerShell/Pager/pull/27/commits/2600096cc4c3e33f3e4626d596300fdda21e3e6c

Luiz-Monad avatar Jun 14 '22 17:06 Luiz-Monad