Bug 197168

Summary: Add option to limit wrapped lines to specified % of view width
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: David Rankin <drankinatty>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: loh.tar
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David Rankin 2009-06-19 17:09:15 UTC
Version:            (using Devel)
Installed from:    Compiled sources

In kwrite, kate, etc., the dynamic word wrap setting does not work correctly and wrap text at 80% of the screen width as set in the dialog. Instead, the wrap occurs at 90%+. See:

http://www.3111skyline.com/download/Archlinux/bugs/kde4/kwrite-dynamicwrap-doesnt.jpeg

(79k)

In fact changing the % of View Width setting has no effect at all. I have set it to 50% and nothing changes. Something is not right with this editor configuration setting.
Comment 1 Hamish Rodda 2009-06-20 09:13:21 UTC
Please read the "whats this" help text for the option, and its use will become clear.
Comment 2 David Rankin 2009-06-20 18:54:10 UTC
Hamish,

    I did read every bit of the what is text before filing this bug and it is still a bug because word wrap is broken. It doesn't work -- Period. What is this crap closing a bug as invalid when it is 100% valid. The "% of View Width" does nothing and it certainly does not:

Align dynamically wrapped lines to indention depth: 20% of View Width

or 30% or 40% --- or 80%

    It is completely broken.

    Certainly you are not trying to tell all KDE users that the dynamic wrap options in "Configure Editor" are just meant to be decorations in the dialog but are not supposed to do anything", are you? That is exactly what it sounds like from your "read the 'what' this" help" -- closed invalid comment.

    I don't want to see the text flow and then dynamically wrap at 95% of View Width, I want to see text flow and dynamically wrap at 80% of the View Width (Exactly like the configuration setting Says). And if I set it to wrap at 20% of the view width, I want to see one skinny little column of text, 20% of the view width wide running all down the left side of the editor window.

    This bug has been reopened, it is not INVALID, the configuration options setting is Borked and needs fixing. Thank you ;-)
Comment 3 David Rankin 2009-06-20 18:58:23 UTC
    To illustrate the problem again, I have prepared another screenshot showing the wrap setting applied at 20% of View Width and it doesn't change a single pixel of the display from setting the dynamic wrap at 80% of View Width:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/dynamic-wrap-broken.jpeg
Comment 4 David Rankin 2009-06-20 19:10:44 UTC
Did this behavior change kde3/kde4. The explanations are completely different:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/dynamic-wrap-broken-kde3.jpeg

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/dynamic-wrap-broken-kde4.jpeg

(P.S. I would have just selected and pasted the text directly into this dialog, but someone has coded the "What's This" pop-ups to prevent you from being able to select and make any use of the text (copy-paste, etc.) so screenshots are all you can do)
Comment 5 David Rankin 2009-06-20 19:20:36 UTC
Finally on this issue, let's look at how the static word wrap refers to the function of the dynamic word wrap. It tells you precisely that if you want to text to "be visually wrapped according to the width of the view, enable Dynamic Word Wrap"....

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/dynamic-wrap-broken-STATIC.jpeg

If you take the position that this is not a bug, but is instead, "Intended Behavior", then all of the help aids concerning this function are confusing as hell and suggest that you set the "% of View Width" where dynamic wrap should occur (which is what it should be doing anyway)
Comment 6 David Rankin 2009-06-20 23:45:52 UTC
OK, Perhaps what we have is a complete misnomer... If I understand from reading the KDE3 documentation, what is call "Word Wrap" is an all actuality "Hanging Indent" that is applied to the LEFT side of the text block instead of the RIGHT side of the text block.

This should be updated to read "Dynamic Indent" instead of "Dynamic Word Wrap". With that understanding, I agree with Hamish that the "Dynamic Indent" is working properly.

However, that doesn't fix the intent of the original bug. That being that the text extends too far against the right border of the editor window. It needs another 5% of "Margin" on the RIGHT side of the editor window to make reading comfortable.
Comment 7 Hamish Rodda 2009-06-22 10:12:53 UTC
So, this is a feature request, to limit the text to a % of the view width.  Reassigning as such.

I do agree that the configuration option text could be better (maybe it was in the past, I don't recall), but the whatsthis text does describe it more completely.
Comment 8 Lothar 2019-03-03 16:58:58 UTC
@David
> ...to make reading comfortable.

Perhaps that may help you, but not exact what you requested
https://phabricator.kde.org/R39:c287d3858fd780f5e139d05e8bb7d4558ccc71b8

These (still) existing % setting was (and is) for me also confusing.

Because the last activity here was a decade ago, I close this. Feel free to reopen if you still need an other option.