PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Expose the number of items shown in command completion list (ListViewMaxHeight) as a $PS variable to make it changable from UI.

Open eabase opened this issue 2 years ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.

Description of the new feature/enhancement

Expose the number of items shown in command completion list ListViewMaxHeight as a $PSReadLine variable to make it changeable from UI. This would probably also need to expose the (internal?) constant of HistoryMaxCount (10) as well, shown a few lines above.

Proposed technical implementation details (optional)

No response

SO Refrence

https://stackoverflow.com/questions/77627464/how-to-increase-number-of-history-items-shown-in-powershell-command-completion?noredirect=1

eabase avatar Dec 08 '23 16:12 eabase

It would be useful to be able to freely change the number of items in the prediction list, is there any alternative while HistoryMaxCount is hardcoded?

thiagoaraujocampos avatar May 29 '24 04:05 thiagoaraujocampos