Bug 485923 - Make line numbers discoverable in Konsole.
Summary: Make line numbers discoverable in Konsole.
Status: ASSIGNED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 24.02.2
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL: https://discuss.kde.org/t/line-number...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-21 20:36 UTC by Roke Julian Lockhart Beedell
Modified: 2024-04-23 17:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
4wy78uwh: performance-


Attachments
The current Konsole GUI (with an example). (175.09 KB, image/png)
2024-04-21 20:36 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
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