Bug 56067 - wish for ViewCursorInterface::setCursorPosition to produce predictable scrolling
Summary: wish for ViewCursorInterface::setCursorPosition to produce predictable scrolling
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.1
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 58638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-17 17:32 UTC by Jens Dagerbo
Modified: 2003-08-27 09:43 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 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