Bug 33583 - show vertical line at columns the user chooses
Summary: show vertical line at columns the user chooses
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 1.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 16:18 UTC by esigra
Modified: 2009-11-25 01:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esigra 2001-10-11 16:14:52 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kate
Version:           1.0 (using KDE 2.2.1 )
Severity:          wishlist
Installed from:    compiled sources
Compiler:          gcc version 2.95.3 20010315 (release)
OS:                Linux (i686) release 2.4.11
OS/Compiler notes: 

A common task is to make sure the lines don't exceed a certain length. Thus the editor should be able to show vertical lines in the buffer at the columnt that should not be exceeded. Then the user can see where he should wrap the text.

There is no reason to limit the number of vertical lines to 1. Someone might find it helpful to have a few more lines.

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Anders Lund 2002-12-15 18:04:35 UTC
I have added this feature to HEAD. 
It shows a line at the word wrap column defined in the "Edit" settings if a fixed font is used. 
It can be enabled/disabled globally and dynamically in the view menu. 
It uses the color used for drawing the current line. 
Comment 2 Leo Savernik 2004-02-10 18:14:25 UTC
I think this is not fixed for a number of reasons:

(1) The bug is about a 1px vertical line representing the 80th column (or some other column as configured).
(2) Having the vertical line should *not* prohibit you from writing over it (i. e. the line is a mere visual aid where the 80th column is located, but should not impose a hard limit that must not be overshot). So "Show Line at 80th column" != "Force break at 80th column"
(3) I cannot make it visible! I looked into the Settings and into the View menu, but there was nowhere an item that switched the line on. How is it supposed to work in Kate 2.2?

Comment 3 Anders Lund 2004-02-10 20:53:02 UTC
On Tuesday 10 February 2004 18:14, Leo Savernik wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=33583
> l.savernik@aon.at changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|RESOLVED                    |UNCONFIRMED
>          Resolution|FIXED                       |
>
>
>
> ------- Additional Comments From l.savernik@aon.at  2004-02-10 18:14
> ------- I think this is not fixed for a number of reasons:
>
> (1) The bug is about a 1px vertical line representing the 80th column (or
> some other column as configured). (2) Having the vertical line should *not*
> prohibit you from writing over it (i. e. the line is a mere visual aid
> where the 80th column is located, but should not impose a hard limit that
> must not be overshot). So "Show Line at 80th column" != "Force break at
> 80th column" (3) I cannot make it visible! I looked into the Settings and
> into the View menu, but there was nowhere an item that switched the line
> on. How is it supposed to work in Kate 2.2?

I comitted a fix to this shortly before the kde 3.2 release, doesn't it work 
for you?

-anders

Comment 4 Leo Savernik 2004-02-10 21:17:25 UTC
I activated the option:
[X] Show static word wrap marker

No vertical line

Then I activated:
[X] Enable static word wrap

Still no vertical line.

Font is Adobe Courier.

Actually, I don't want the text to be statically wrapped (in fact, I don't want it wrapped at all), I only want a vertical line that tells me where the 80th column is located so that I don't overshoot it on wide window widths (except sometimes when I'm not more than about 5 character over the limit).

The menu item "View/Show static word wrap marker" also doesn't do anything.
Comment 5 Anders Lund 2004-02-10 21:32:09 UTC
On Tuesday 10 February 2004 21:17, Leo Savernik wrote:
> I activated the option:
> [X] Show static word wrap marker
>
> No vertical line
>
> Then I activated:
> [X] Enable static word wrap
>
> Still no vertical line.
>
> Font is Adobe Courier.
>
> Actually, I don't want the text to be statically wrapped (in fact, I don't
> want it wrapped at all), I only want a vertical line that tells me where
> the 80th column is located so that I don't overshoot it on wide window
> widths (except sometimes when I'm not more than about 5 character over the
> limit).
>
> The menu item "View/Show static word wrap marker" also doesn't do anything.

What KDE version? It should work in 3.2, but i didn't have the opportunity to 
try that yet. otherwise i'll fix it asap :)

-anders
Comment 6 Leo Savernik 2004-02-10 22:38:57 UTC
Am Dienstag, 10. Februar 2004 21:32 schrieb Anders Lund:
> What KDE version?

The latest and greatest: KDE 3.2 :-)

Comment 7 Hamish Rodda 2004-02-11 04:59:56 UTC
Check to make sure that the "word wrap marker" colour is not the same as your background colour...
Comment 8 Anders Lund 2004-02-12 10:03:59 UTC
On Wednesday 11 February 2004 04:59, Hamish Rodda wrote:
> Check to make sure that the "word wrap marker" colour is not the same as
> your background colour... 
> 

Eeps, we should fix that :)

-anders

Comment 9 Leo Savernik 2004-04-18 23:14:35 UTC
Hey! It works now :-)

I activated View/Show dynamic word wrap marker, and a black vertical line appeared. But it's at 81 whereas I set the static word wrap at 80 in the settings.

Yeah, I know why it doesn't work on my KDE cvs environment. I'm using an inverse color scheme there, so it displays a black line on a black background ;-)

Couldn't it be a little less obtrusive, e. g. light gray instead of black?
Comment 10 Anders Lund 2004-04-19 09:01:56 UTC
The wrong column -- oops, thanks fo noticing.

The color is conifgurable, given you have a recent KDE version, in the "Schemas" or if you run CVS "Fonts and Colors" config page.
Comment 11 Anders Lund 2004-04-19 09:23:13 UTC
Hm, the column where the vertical line is painted is actually correct, in the sense that the text preceeding the line can be max wordWrapsAt characters wide -- the line is at the end of the desired column.

I use the line to manually wrap my text/code, so it works perfectly well. The number in the Col: field in the statusline is the *next* column.
Comment 12 esigra 2006-01-18 02:01:17 UTC
Thanks a lot for implementing this!