PAGEUP PAGEDOWN don't change cursor position
Details for the issue
What did you do?
Open a fairly large file, Jump to bottom with Ctrl-End, press up arrow and cursor moves appropriately Press PAGEUP a few times, note that there is no longer a current line highlighted. press Up Note that the screen jumps back down several pages to where the cursor was BEFORE you pressed pageup.
What did you expect to see?
pressing pageup, pagedown, home, end, up, down should all affect the current cursor location, not just the viewport.
What did you see instead?
A highlighted cursor line should be visible after a PAGEUP or PAGEDOWN
Useful extra information
Klogg version 21.09.0.1165 (built on 2021-09-27 from commit 9fade8b) [built for x86_64-little_endian-llp64] running on Windows 10 Version 1909 (winnt/10.0.18363) [x86_64] and Qt 5.15.2
Thanks for reporting this. The current behaviour is like this because viewport scrolling and line selections are separate. Changing PgUp/PgDown to modify current selection is possible, but I'll need to check how other similar tools do this (like Notepad++ for example).
Thanks for the response!
Makes sense. Yes, check out notepad++, VSCODE, Visual Studio, Word, etc.
Generally speaking, keyboard navigation will change cursor position in all those apps. There +are+ some obscure key combinations that will scroll the viewport WITHOUT changing the cursor, but they aren't readily obvious.
Whereas, Pageup and pagedown will change the cursor position in all those apps. Same with Home, end, Ctrl-Home, Ctrl-End, etc
On the other hand, dragging the scrollbar hand or clicking the scrollbar to scroll, generally +does not+ change cursor position, only the viewport.
Awesome log viewer BTW. If my C wasn't so rusty, I'd put together a pull request myself. I do mostly C# now