Closed ProgerXP closed 10 months ago
Done.
Works only if there are no wrapped lines - otherwise caret position is calculated incorrectly.
Fixed.
This works. Let's add Shift+Alt+PageUp/Down that make/extend selection to the start of target line (currently they work like normal Shift+PageUp/Down).
Done.
Minor/future issue: this currently sets caret to the first subline so if there's a long wrapped line on top of the screen whose leading sublines are invisible, Alt+PageUp will actually scroll the viewport.
This is like
H L M
in Vim.The hotkeys put caret on the first/last line that would not cause scrolling as a result of
ScrollYCaretPolicy
.For example, if currently visible lines are:
Assume
ScrollYCaretPolicy
is as such that when caret is on line 1 then page is scrolled but not if on line 2 or below. In this case Alt+PageUp would place caret on linesecond
(and the original column) while Alt+PageDown - onfifth
.