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

Open
#3,892 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell
Domain
cli

Research direction

Start in Prediction.Views.cs at ListViewMaxHeight and the nearby HistoryMaxCount constant. Trace how PSReadLine variables are exposed and how the command completion list reads these values. Done means both limits can be changed through the $PSReadLine UI without breaking completion behavior.

Written by the indexing model from the issue text.

Description

Area-Predictors Issue-Enhancement Needs-Triage :mag:
Prerequisites
  • 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

Dominant language
C#
Stars
4.4k
Forks
341
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PSReadLine

All issues in PowerShell/PSReadLine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.