PSReadLine
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.
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
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?