Scroll vertically beyond last line/pastEOF

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 1
Joined: Tue Mar 26, 2019 6:15 pm

Scroll vertically beyond last line/pastEOF

Post by joschol »

For many years, AkelPad is one of the most used programs on my computer. Many thanks to the developers of this great editor!

However, there is one thing I miss. Notepad++ allows to scroll vertically beyond last line/pastEOF, which is very useful if you don't like the active line close to the bottom of the window. AkelPad does not seem to offer this option natively. Does anyone have an idea how to solve this? Maybe there is a script that offers the same effect?

DV
Offline
Posts: 1294
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: Scroll vertically beyond last line/pastEOF

Post by DV »

I'm wondering the same: is it possible in AkelPad?

Offline
Site Admin
Posts: 6412
Joined: Thu Jul 06, 2006 7:20 am

Re: Scroll vertically beyond last line/pastEOF

Post by Instructor »

Test version x86 / x64
Added: flag 2048 in the manual parameter "PaintOptions" - vertical scroll beyond last line.

DV
Offline
Posts: 1294
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: Scroll vertically beyond last line/pastEOF

Post by DV »

Wow, it was fast, thank you!

Looks like there is a small correction to do in PMDI mode:
- when AkelPad's editing window was split vertically and you scroll beyond the last line (similar to the screenshot below);
- and you switch to another document (e.g. via Ctrl+Tab);
- and then switch back to the document with the vertical split, the view position is different than it was before (i.e. you see a different part of the document).
In case of the horizontal split, the view position is preserved as expected.

Image

Offline
Site Admin
Posts: 6412
Joined: Thu Jul 06, 2006 7:20 am

Re: Scroll vertically beyond last line/pastEOF

Post by Instructor »

DV
Not reproduced. Can you send/share your AkelPad folder?

DV
Offline
Posts: 1294
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: Scroll vertically beyond last line/pastEOF

Post by DV »

Instructor wrote: Wed May 14, 2025 6:01 pm DV
Not reproduced. Can you send/share your AkelPad folder?
Please find here:
https://drive.google.com/file/d/1BSdY-2 ... sp=sharing
Steps to reproduce:
1. AkelPad in PMDI mode
2. Open at least 2 files
3. Split an active file vertically
4. Scroll outside of the document end in the both split views
5. Ctrl+Tab to another file
6. Ctrl+Tab back to the file with the vertical split

DV
Offline
Posts: 1294
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: Scroll vertically beyond last line/pastEOF

Post by DV »

I've additionally noticed the following (it happens with the 2048 flag set):
- when you have a short text file (let's say, just 5 lines of text) and press Page Down, the entire text is scrolled up and you see only the very last line.

I believe, Page Down should move the caret to the very last line but not scroll the entire text. I.e. you should still be able to see all the text lines above the very last line after Page Down has been pressed.

P.S. I just compared Sublime Text and Notepad++ to see how they behave when Page Down is pressed.
Sublime Text does not scroll the entire text (thus not hiding it) when Page Down is pressed. This is the desired behavior.
Notepad++ scrolls the text on Page Down (thus hiding it), similarly to AkelPad. I don't like this behavior.
Please let's use Sublime Text's behavior as the guideline. You can download and use an unregistered version of Sublime Text without time limit, it will just sometimes show a popup that reminds that it is not registered.

Offline
Site Admin
Posts: 6412
Joined: Thu Jul 06, 2006 7:20 am

Re: Scroll vertically beyond last line/pastEOF

Post by Instructor »

DV
Test version x86 / x64
Changed: "PaintOptions" flag 2048 replaced with manual setting "ScrollPastEOF" - vertical scroll beyond last line, as a percentage of the editing area height. For example, 100.

DV
Offline
Posts: 1294
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: Scroll vertically beyond last line/pastEOF

Post by DV »

Looks good so far, thank you very much!

On a side note, when scrolling via a touchpad on a laptop, sometimes there are unexpected "jumps" or "flickering" when we reach either the begging or the end of the document. However, it is not something new - it existed in previous builds of AkelPad as well, and it seems to be specific to scrolling by means of touchpad.

Offline
Site Admin
Posts: 6412
Joined: Thu Jul 06, 2006 7:20 am

Re: Scroll vertically beyond last line/pastEOF

Post by Instructor »

DV wrote: Fri May 30, 2025 11:14 am..sometimes there are unexpected "jumps" or "flickering" when we reach either the begging or the end of the document.
Unfortunately I don't have touchpad to test it.
Post Reply