Bug 499316 - Dynamic wrap at character limit
Summary: Dynamic wrap at character limit
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.1
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-30 11:06 UTC by Daenney
Modified: 2025-01-31 15:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daenney 2025-01-30 11:06:32 UTC
SUMMARY

When using Dynamic Word Wrap, text wraps once it reaches the edge of the document width view. With "Word wrap at fixed column", it hard wraps at the specified value.

What I'd love to have is the combination of both, where dynamic word wrap will wrap at a set value, instead of the width of the editor document/view. I can force this by having a second document in split mode, to force the view of the document I'm editing to shrink to the desired wrap width, but that feels super clunky.

STEPS TO REPRODUCE

1. Enable dynamic word wrap
2. Set Wrap Words at 82 characters, and enable Draw Vertical Line to make things easier to spot
3. Open a document and start typing

OBSERVED RESULT

The line will only soft wrap once it reaches the edge of the screen, potentially well past the word wrap character limit / column line.

EXPECTED RESULT

I'd like it to soft-wrap at the word wrap character.

This allows to constrain the width of the text of the editor, without introducing hard wraps. Hard wraps make text hard to reflow which can cause frustration when reading text for people with visual impairments, as 80 characters at 12pt takes up a different amount of horizontal space than 80 characters at 16pt.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Comment 1 Waqar Ahmed 2025-01-31 09:04:32 UTC
@Christoph Thoughts?

I would say this feature is not worth the complexity. Especially if you consider variable width fonts
Comment 2 Daenney 2025-01-31 11:30:40 UTC
An alternative way to do this could be to be able to constrain the editor/document window width without needing a split screen? That solves my issue in practice, and might be helpful when running on large screens or in full screen mode, as the document edit area can get very wide.
Comment 3 Daenney 2025-01-31 15:33:34 UTC
Turns out this already exists. I just missed a setting. There's a "wrap dynamic at static word wrap marker" in appearance which results exactly in what I am asking for. It probably tripped me up because the settings are spread between General and Editing but they have to be configured together for the functionality I'm looking for.

I'll close this as worksforme. Apologies for the noise.