Bug 135737 - indentation isn't kept after static word wrap
Summary: indentation isn't kept after static word wrap
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: indentation (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 195201 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-16 11:24 UTC by Robert Fischer
Modified: 2023-04-16 16:41 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Static or Apply Word Wrap Indentation (100.23 KB, image/jpeg)
2017-05-13 05:08 UTC, Russell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Fischer 2006-10-16 11:24:04 UTC
Version:           2.5.2 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18.1 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-27-k7

When "static word wrap" is enabled and the currently typed line needs to be wrapped, kate doesn't keep the
identation. The expected behavior would be that kate keeps the indentation after the static word wrap
Comment 1 johnny 2006-12-09 12:44:52 UTC
I can confirm this bug in kate 2.5.5. It is quite annoying and there seems to be no way to enable this behaviour.

Also, as side note, I have some problems with the kate command line, i.e. it doesn't recognize the "set-auto-indent" command, but it is displayed in the hints list when typing (F7 - type set-auto-indent true, press enter)
Comment 2 Travis Evans 2008-06-12 15:57:14 UTC
Confirmed in Kate 2.5.8.  It's driving me nuts.
Comment 3 Dominik Haumann 2009-06-05 00:15:51 UTC
*** Bug 195201 has been marked as a duplicate of this bug. ***
Comment 4 Davide Bellettini 2009-11-11 14:12:45 UTC
Confirmed in Kile 2.0.83
Comment 5 Christoph Cullmann 2012-11-01 16:04:47 UTC
This is a feature wish. I can understand that you want that, thought.
Comment 6 energie.mc2 2014-09-22 16:14:44 UTC
The problem still exists and is still annoying. I wonder why no KDE developer cares, since this is the main drawback of kdevelop...

Is there a way to fix this behaviour? It looks like instead of inserting a plain newline, kate just would have to trigger a return key event.

kate: 4:4.13.3-0ubuntu0.1
katepart: 4:4.13.3-0ubuntu0.1
kdevelop: 4:4.6.0-0ubuntu3
Comment 7 Buovjaga 2016-06-19 13:46:17 UTC
I don't seem to have the problem.
If you guys still see it, please attach a screenshot illustrating how it looks like.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.22.0
Qt 5.6.1
xcb wm
Comment 8 Russell 2017-05-13 05:08:14 UTC
Created attachment 105502 [details]
Static or Apply Word Wrap Indentation

I used the same example line (A) for each test.

      ### (A) Join: Tools -> Join Lines (ctrl-j)

      3. Pathnames can be absolute or relative; if absolute (with a leading slash), they are relative to the root of the filesystem on which extlinux is installed (/boot in the example above), if relative, they are relative to the extlinux directory.

      ### (B) Static Word Wrap: Settings -> Configure Kate -> Editing -> Enable static word wrap

      3. Pathnames can be absolute or relative; if absolute (with a leading 
slash), they are relative to the root of the filesystem on which extlinux is 
installed (/boot in the example above), if relative, they are relative to the 
extlinux directory.

      ### (C) Apply Word Wrap: Tools -> Apply word wrap (reconfigured key: ctrl-w) (No Static or Dynamic Word Wrap enabled) 

      3. Pathnames can be absolute or relative; if absolute (with a leading 
slash), they are relative to the root of the filesystem on which extlinux is 
installed (/boot in the example above), if relative, they are relative to the 
extlinux directory.

      ### (D) Dynamic Word Wrap: Settings -> Configure Kate -> Appearance -> Dynamic Word Wrap or (F10) 

      3. Pathnames can be absolute or relative; if absolute (with a leading slash), they are relative to the root of the filesystem on which 
      extlinux is installed (/boot in the example above), if relative, they are relative to the extlinux directory.

      ### (E) Expected for (B) & (C)

      3. Pathnames can be absolute or relative; if absolute (with a leading 
      slash), they are relative to the root of the filesystem on which extlinux 
      is installed (/boot in the example above), if relative, they are relative 
      to the extlinux directory.

"Dynamic Word Wrap", F10, or Settings -> Configure Editor -> Appearance
does align (D), but the length is not "Word Wrap Marker", like "Static Word 
Wrap", but rather some percentage of the "View Width". The documentation does 
say "Align dynamically wrapped lines to indentation depth". The file is not 
saved this way. 

Doc: https://docs.kde.org/trunk5/en/applications/katepart/config-dialog.html

The "Static Word Wrap" says nothing about alignment.  

Doc: https://docs.kde.org/trunk5/en/applications/katepart/config-dialog.html#pref-edit

I tested with Kate and Kwrite, thus the Configure Kate and the Configure Editor.

I agree with #1.  

Regarding #7, does that mean "Apply Word Wrap" and "Static Word Wrap"  keep the
alignment of the previous line.  I tried it on a recent version of OpenSuse
Tumbleweed and it worked like #1, not #7.

OpenSuse Tumbleweed
KDE Frameworks 5.33.0
Qt 5.7.1
Kate 16.12.3
Comment 9 Christoph Cullmann 2023-04-16 16:41:44 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

e.g. see the information at https://kate-editor.org/join-us/ for details

Greetings
Christoph Cullmann