Skip to content

Add an option to set history list width #4710

Open
@SomwareHR

Description

@SomwareHR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementIt's a feature request.Needs-Triage 🔍It's a new issue that core contributor team needs to triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions