NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Scroll lock


Joined: 13 Mar 2008
Posts: 5
Reply with quote
Ok, so this might be a bit far fetched and it's just a nice little thing rather than a major feature but would you be able to implement scroll lock? ie, so if scroll lock is enabled and i use the arrow keys then the cursor stays in the same place and the document moves around and without scroll lock then things are as they are normally (cursor moves until it hits edge of screen and then the document moves)

Cheers,

Tim.
View user's profileFind all posts by timnpSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Tim, I'm not sure what "lock" you meant. Is it something you can get with Ctrl-Up, Ctrl-Down?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Mar 2008
Posts: 5
Reply with quote
Hi.

I don't think I explained this very well. I'll try again...

This only applies when editing a document that has more lines than will fit on the screen and is applicable to keyboard navigation not mouse navigation.

Usually, when I scroll around the document I use a combination of the arrow keys and the page up/page down keys. Rarely I'll use the mouse scroll wheel and the document scroll bars.

It often happens that if I am inserting code into an existing document I need to be able to see the code directly above and beneath the few lines that I am working on. In standard operation when the cursor gets to the bottom of the screen I am unable to see the code that is beneath it without having to scroll down a bit, later once i've typed some more I might have to do this again and so on.

I notice in phpEd that it recognises when I have 'scroll lock' enabled on my keyboard (by placing 'SCR' in the very bottom right of the window) but it doesn't seem to modify the behaviour at all. What I would envisage scroll lock to do is this. Say I have the cursor on a row roughly in the middle of the screen, as soon as I move the cursor, either with the arrows, pressing enter, or backspacing to the previous line it causes the whole document to move up or down by one line on my screen, the line number in the middle of my screen is now one greater or one less but the position of the cursor on the Y axis of the screen/window hasn't changed. 'Scroll lock' in this context would mean that the Y-axis position of the cursor is locked even when it isnt directly at the top or bottom of the screen.

Another way of looking at it is this, in normal mode when I type or move the cursor around the document it only causes the document the shift up and down when the cursor gets to the top or bottom of the screen. When the screen boundary is reached and you carry on moving then the whole document shifts about and the cursor stays in the same Y-axis position. I would like to keep this behaviour even when the cursor is in the middle of the screen.

This would be something that you would turn on and off as and when you need it, not leave on all the time, so using a redundant key such as the scroll-lock key to activate/deactivate it would be useful. It may take a little bit of mastery and getting used to but if you didnt like it you would just never enable it and I can think of times when this would have been useful to me (hence this post).

Kind regards,

timnp
View user's profileFind all posts by timnpSend private message


Joined: 13 Mar 2008
Posts: 5
Reply with quote
Any chance of anything like this?
View user's profileFind all posts by timnpSend private message
Scroll lock
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic