Bug 61335

Summary: Popup view start line number while scrolling
Product: [Applications] kate Reporter: tim
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: jowenn
Priority: NOR    
Version: 2.2   
Target Milestone: ---   
Platform: Tru64 Unix Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.0

Description tim 2003-07-16 22:34:02 UTC
Version:           2.2 (using KDE 3.1.9)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

It would be nice if Kate could update the line number in the status bar while scrolling with the scroll bars. That would make it easier to find a line.
Comment 1 Anders Lund 2003-07-16 22:40:58 UTC
Subject: Re:  New: Update the statusbar line number while scrolling

On Wednesday 16 July 2003 22:34, tim@tjansen.de wrote:
> It would be nice if Kate could update the line number in the status bar
> while scrolling with the scroll bars. That would make it easier to find a
> line. 

Well, dragging the scrollbars does not move the cursor, and the scrollbar 
shows the cursor position.

I once wrote code to make a tooltip on that popped up when the scrollbar 
handle were clicked, and showed the range of visible lines. Maybe that would 
be good? I could probably write that again (it never made it into the cvs 
source tree, and i haven't even got a copy).

-anders 
Comment 2 Christoph Cullmann 2003-07-16 22:47:18 UTC
Subject: Re:  Update the statusbar line number while scrolling

> I once wrote code to make a tooltip on that popped up when the scrollbar
> handle were clicked, and showed the range of visible lines. Maybe that
> would be good? I could probably write that again (it never made it into the
> cvs source tree, and i haven't even got a copy).
think could be usefull ;)

Comment 3 tim 2003-07-16 23:12:27 UTC
> Well, dragging the scrollbars does not move the cursor, and the scrollbar  
> shows the cursor position.  
 
Effectively it does, because when you press the 'up' key after scrolling the cursor is at the 
scrolled position. Kate may handle the cursor differently internally (and change the cursor 
position only when the user presses the key), but for the user this is not obvious. 
 
Comment 4 Anders Lund 2003-07-16 23:16:53 UTC
Subject: Re:  Update the statusbar line number while scrolling

On Wednesday 16 July 2003 23:12, tim@tjansen.de wrote:
> Effectively it does, because when you press the 'up' key after scrolling
> the cursor is at the scrolled position. Kate may handle the cursor
> differently internally (and change the cursor position only when the user
> presses the key), but for the user this is not obvious.

No. 

If i position the cursor in the top of a long document, scrolls to the bottom 
using the scrollbar, and the moves either arrow, (<-, -> up, down), the 
cursor is moved one atom, and the document is scrolled back, so that it is 
visible. Just like it should be...

-anders
Comment 5 Christoph Cullmann 2003-07-16 23:18:03 UTC
Subject: Re:  Update the statusbar line number while scrolling

> Effectively it does, because when you press the 'up' key after scrolling
> the cursor is at the scrolled position. Kate may handle the cursor
> differently internally (and change the cursor position only when the user
> presses the key), but for the user this is not obvious.
hmm, here pressing up don't change the pos to the current scrollpos, and I 
don't think that scrolling changes cursor pos, not only not internally but it 
does in no other editor, too, that would just be even more confusing, a nice 
popup would show that much better with some "line 323 - 356" on screen

Comment 6 tim 2003-07-16 23:43:41 UTC
>I don't think that scrolling changes cursor pos, not only not internally but it  
>does in no other editor 
 
You're right about kate, did something wrong while testing. But emacs moves the cursor as you 
scroll, the cursor never leaves the visible area. 
 
Comment 7 Joseph Wenninger 2012-10-27 22:53:28 UTC
commit b7ba4cf72d5b86ce2a1a247fda4f0d393cd5cc62
Author: Joseph Wenninger
Date:   Sun Oct 28 00:47:28 2012 +0200

    Show a tooltip next to the mouse cursor which shows the top line of the view while scrolling
    BUG; 61335