New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: make use of the scroll lock key #3817
Comments
I vote for this! Most similar apps should implement this. |
Definitely needed. |
The caret isn't necessarily always visible to the user. Example: Put caret on line 1 of a file that has more lines than will fit on on-screen at once. Then, using mouse, click and drag the vertical scrollbar such that line 1 (with the caret) is no longer visible. What is supposed to happen in the proposed scroll-lock scenario for this case? |
Which is part of the bug I'm reporting. Picture your mouse cursor: it doesn't move on your display when you scroll down, but points at a different part of your text. The caret would behave the same with scroll lock. But scroll lock is really about keyboard-only workflows. Where you don't want to move your hands away from the keyboard when you are editing a document and need to move to another part of it: press scroll lock, move the document a few lines up or down with the cursor keys, press it again to unlock the caret. Having the caret stay at the same document line defeats the purpose of being able to move the document with the keyboard, as you still need to grab the mouse to position the caret. |
@jarreboum - if such a feature should be considered I would try to define its functionality as good as possible. |
@jarreboum: Part of the advantage of scroll lock is precisely that it leaves the IP in place, but the implementation you're suggesting would compromise that. Moreover, to force a change of the IP with respect to the document would be unexpected and disruptive. That said, one can think of a scenario in which it would be useful to set the IP to the current mouse position @Ekopalypse: However, one can also make the case for a more dedicated solution, for which I want to answer all your questions: Single Keys for moving actions: Key combinations with shift key: Key combinations with control key: After unlocking the scroll: Non-moving keys:
Mouse always selects the text that is under the mouse; this behavior should be no different from non-scroll mode. |
Description of the Issue
The Scroll Lock key is grossly underused these days, and sits alone on the keyboard, barely ever pressed. Notepad++ ought to correct that.
Steps to Reproduce the Issue
Expected Behavior
The whole document should scroll, while the cursor stays in the same position relatively to the screen.
Actual Behavior
The cursor keeps moving.
Additional information
Maintaining Ctrl and using the cursor keys somewhat emulates this behaviour. This is unsatisfactory as:
Debug Information
Notepad++ v7.5.1 (32-bit)
Build time : Aug 29 2017 - 02:35:41
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : mimeTools.dll NotepadStarterPlugin.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll
The text was updated successfully, but these errors were encountered: