Bug 485923

Summary: Make line numbers discoverable in Konsole.
Product: [Applications] konsole Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: ASSIGNED ---    
Severity: wishlist CC: matan
Priority: NOR Flags: 4wy78uwh: performance-
Version: 24.02.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://discuss.kde.org/t/line-numbers-in-konsole/14435?u=rokejulianlockhart
See Also: https://bugs.kde.org/show_bug.cgi?id=485963
https://bugs.kde.org/show_bug.cgi?id=485964
https://bugs.kde.org/show_bug.cgi?id=485965
https://bugs.kde.org/show_bug.cgi?id=485967
https://bugs.kde.org/show_bug.cgi?id=485969
https://bugs.kde.org/show_bug.cgi?id=485970
https://github.com/microsoft/terminal/issues/17490#issue-2382168026
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The current Konsole GUI (with an example).

Description Roke Julian Lockhart Beedell 2024-04-21 20:36:48 UTC
Created attachment 168765 [details]
The current Konsole GUI (with an example).

SUMMARY
I'd like line numbers.

STEPS TO REPRODUCE
Invoke Konsole, and use a command like https://github.com/coreutils/coreutils/blob/225cb8d7473eadb481a4884e929bf23589d4bd82/src/cat.c#L1 or https://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.

EXPECTED RESULT
I should have line numbers in the terminal, to its side (according to LTR/RTL preference).

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
https://discuss.kde.org/t/line-numbers-in-autostart-kcm-information/14402?u=rokejulianlockhart#:~:text=i%E2%80%99d%20suggest%20the%20konsole%20kpart%2C%20but%20konsole%20doesn%E2%80%99t%20appear%20to%20support%20line%20numbers%2C%20surprisingly.
Comment 1 Matan Ziv-Av 2024-04-22 14:38:20 UTC
It is undocumented (ans undiscoverable), but press ctrl-alt-backslash (\) a couple of times.
Comment 2 Roke Julian Lockhart Beedell 2024-04-22 14:39:40 UTC
(In reply to Matan Ziv-Av from comment #1)
Oh. My. God. You're the love of my life.
Comment 3 Matan Ziv-Av 2024-04-22 14:51:53 UTC
Just to be clear (before I will write it in the manual).

c-a-\ cycles between three modes - always on, always off, and a third mode which shows only when a special combination of modifiers (configurable in edit profile - advanced) is pressed.
Comment 4 Bug Janitor Service 2024-04-23 17:00:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/988