Bug 485965 - Konsole line numbers do not adhere to LTR/RTL text preference.
Summary: Konsole line numbers do not adhere to LTR/RTL text preference.
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 24.02.2
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-22 14:48 UTC by Roke Julian Lockhart Beedell
Modified: 2024-04-22 15:41 UTC (History)
1 user (show)

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


Attachments
Depiction of the problem. (56.76 KB, image/png)
2024-04-22 14:50 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-22 14:48:09 UTC
STEPS TO REPRODUCE
1.  Install https://download.fedoraproject.org/pub/fedora/linux/releases/test/40_Beta/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40_Beta-1.10.iso
2.  Install https://kojipkgs.fedoraproject.org//packages/konsole/24.02.2/1.fc40/x86_64/konsole-24.02.2-1.fc40.x86_64.rpm
3.  Enable them using https://bugs.kde.org/show_bug.cgi?id=485923#c1
4.  Switch from a RTL to an LTR language, if not already.

OBSERVED RESULT
They always render on the right.

EXPECTED RESULT


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://bugs.kde.org/show_bug.cgi?id=485923#c1
Comment 1 Roke Julian Lockhart Beedell 2024-04-22 14:48:48 UTC
(In reply to Roke Julian Lockhart Beedell from comment #0)
EXPECTED RESULT
They should render on the left, like all other text editors and terminals that I've used, with a 1-px line to separate them (like KWrite, Kate, and KDevelop).
Comment 2 Roke Julian Lockhart Beedell 2024-04-22 14:50:38 UTC
Created attachment 168801 [details]
Depiction of the problem.

https://bugs.kde.org/attachment.cgi?id=168800&action=edit
Comment 3 Matan Ziv-Av 2024-04-22 15:30:22 UTC
(In reply to Roke Julian Lockhart Beedell from comment #1)
> (In reply to Roke Julian Lockhart Beedell from comment #0)
> EXPECTED RESULT
> They should render on the left, like all other text editors and terminals
> that I've used, with a 1-px line to separate them (like KWrite, Kate, and
> KDevelop).

I am not sure this is an expected behaviour. I do not have the numbers always enabled, but only show them (rarely) when needed. If they were on the left, they might need to change the terminal size when shown, which is undesirable. See similar discussion here: https://invent.kde.org/utilities/konsole/-/merge_requests/972 .
That's why the line numbers are actually an overlay, which is usually less problematic when on the right.
Comment 4 Roke Julian Lockhart Beedell 2024-04-22 15:40:23 UTC
(In reply to Matan Ziv-Av from comment #3)
That's a good point. However, in that case, although my rationale doesn't stand, the issue does - I doubt that it renders on the left when the user is using RTL text?
Comment 5 Roke Julian Lockhart Beedell 2024-04-22 15:41:24 UTC
(In reply to Matan Ziv-Av from comment #3)
I can understand that being a problem when enabling it *during* a session, but I'd never do that, so if enabled permanently, the user could start the session with it already on the left, if that makes sense.