Bug 56067

Summary: wish for ViewCursorInterface::setCursorPosition to produce predictable scrolling
Product: [Applications] kate Reporter: Jens Dagerbo <jens.dagerbo>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: joerg
Priority: NOR    
Version: 2.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jens Dagerbo 2003-03-17 17:32:37 UTC
Version:           2.1 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 3.2.2
OS:          Linux (i686) release 2.4.20-gentoo-r1

Hi,

I'm using the katepart inside gideon and it all works very well, but there is one small thing that ususally throws me abit. In several places gideon calls ViewCursorInterface::setCursorPosition to jump to a place in a file, the katepart makes sure the line is visible and scrolls the buffer. The problem is that this never seems to place the marked line in a predictable place in the buffer window, which means the user will spend a few moments looking for the cursor. It doesn't sound too bad, but it is actually quite disruptive.My simple wish then would be: 

Make setCursorPosition always scroll the buffer so that the requested line is shown vertically centered in the buffer window.

This is a very small addition (featurewise, I dont know about the code), but I feel it would really enhance the usability of the feature.
Comment 1 John Bell 2003-03-25 10:06:41 UTC
Or also add an option to let the user decide whether to position the requested line at the top/middle/bottom of the buffer window.  This way everyone can position it where they want. (Becuase I'd probably use top).
Comment 2 Christoph Cullmann 2003-05-21 23:40:45 UTC
*** Bug 58638 has been marked as a duplicate of this bug. ***
Comment 3 Jens Dagerbo 2003-06-17 21:23:17 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Christoph Cullmann 2003-08-27 09:43:10 UTC
top placement will be default, no config option, we have really enough, but user 
can specifiy the amout of lines which the cursor should always stay away from the 
border and that will respected