PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Add an option to set history list width

Open SomwareHR opened this issue 9 months ago • 1 comments

Prerequisites

  • [x] 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 avatar Apr 18 '25 06:04 SomwareHR