Skip to content

Please add line numbers. #17490

@RokeJulianLockhart

Description

@RokeJulianLockhart

Description of the new feature/enhancement

As bugs.kde.org/show_bug.cgi?id=485923 describes:

STEPS TO REPRODUCE

Invoke Konsole, and use a command like cat or github.com/MicrosoftDocs/PowerShell-Docs/blob/04dac6ae6b2abcb91006b6a515cc26c72219ffd5/reference/7.4/Microsoft.PowerShell.Management/Get-Content.md#example-2-limit-the-number-of-lines-get-content-returns to output the content of a file to the terminal.

OBSERVED RESULT

Without using cat's -b or -n flags, the content cannot be numbered. For others, like the aforecited Get-Content, it's impossible to output line numbers without writing code for every interaction to iterate over the lines.

Konsole has since gained the ability to display line numbers, as discuss.kde.org/t/14435#always-3 depicts:

Image

It's been invaluable for me, when reading long logs via the terminal. Consequently, I propose the same for Windows Terminal.

Proposed technical implementation details (optional)

I'd rather that they be in a permanent separator following the text direction, or on the opposite of the text direction, still separated regardless (to prevent overlap). Specifically, as bugs.kde.org/show_bug.cgi?id=485970#c3 describes:

I want it to be like a Konsole/Dolphin panel, so that it can be moved to the left or right. However, I'd like it to work like a plasmoid on a PlasmaShell panel does - when a new session is invoked (like when a new tab or window is created) it should be static, and not overlay, like any other panel does. However, I should be able to set a toggle (like PlasmaShell's pin feature) and have it then able to temporarily resize over the session until I pin it again, where it returns to its original size. It should also have a horizontal scrollbar for when the user accidentally sets it shorter than they need at the start of a session.

Does that make sense?

I expected that this implementation wouldn't be possible due to wt's apparent lack of comparable "panel" support, but #997 (comment) demonstrates otherwise.

Relevant Notes

PR that added it to Konsole

invent.kde.org/utilities/konsole/-/merge_requests/730

PR that added documentation

invent.kde.org/utilities/konsole/-/merge_requests/988

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-AttentionThe core contributors need to come back around and look at this ASAP.Product-TerminalThe new Windows Terminal.Resolution-Won't-FixWe're just really obstinate about this. There's probably a good reason.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions