Skip to content

Add an option to set history list width #4710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
SomwareHR opened this issue Apr 18, 2025 · 0 comments
Open
1 task done

Add an option to set history list width #4710

SomwareHR opened this issue Apr 18, 2025 · 0 comments
Labels
Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@SomwareHR
Copy link

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

Hi, thanks for an excellent addition to Powershell! :)

Intro

I keep WindowsTerminal window full screen all the time. PSReadLine cuts history list at 88 chars. This leaves a lot of free space on screen (see image) and commands are cut-off, often at the places where most important arguments are.

Idea

Introduce an option to set history list width to desired number of characters or, even better, to console width.

Thank you! :)

Image

Image

Proposed technical implementation details (optional)

Set-PSReadLineOption -LineWidth 200
Set-PSReadLineOption -LineWidth $Host.UI.RawUI.WindowSize.Width
Set-PSReadLineOption -LineWidth Maximum

@SomwareHR SomwareHR added the Issue-Enhancement It's a feature request. label Apr 18, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

1 participant