Lister: cursor jumps into the visible area after Ctrl+arrows
Moderators: Hacker, petermad, Stefan2, white
Lister: cursor jumps into the visible area after Ctrl+arrows
Came from the discussion here.
1. Open some large file in the Lister (no plugins), turn the caret on.
2. Scroll the document with Ctrl+down for several lines.
3. Press any arrow key (up/down/left/right).
Expected: the cursor should move relatively to its current position and then the document should be scrolled to show the cursor (as in most text editors).
What happens instead: the cursor jumps to the neraly-visible area (to the line just above the visible area), and then moves in the direction specified by the arrow key, then the document is scrolled (if necessary).
PS: The same when scrolling with mouse wheel instead of Ctrl+down.
1. Open some large file in the Lister (no plugins), turn the caret on.
2. Scroll the document with Ctrl+down for several lines.
3. Press any arrow key (up/down/left/right).
Expected: the cursor should move relatively to its current position and then the document should be scrolled to show the cursor (as in most text editors).
What happens instead: the cursor jumps to the neraly-visible area (to the line just above the visible area), and then moves in the direction specified by the arrow key, then the document is scrolled (if necessary).
PS: The same when scrolling with mouse wheel instead of Ctrl+down.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This behaviour is inentional. Nothing is more frustrating than searching for many minutes for a certain text, and when it is finally found, lose the position because the cursor is somewhere else...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
But all text editors behave in the manner I described. The users get used to it, and may find it confusing how TC behaves in such situations.ghisler(Author) wrote:Nothing is more frustrating than searching for many minutes for a certain text, and when it is finally found, lose the position because the cursor is somewhere else...
Maybe a wincmd.ini key then? The current behaviour is really very inconvenient and unusual! (For me, at least...)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
I bump this thread, because I wholeheartedly agree with Flint. Maybe optionally, please?
Another problem with the cursor movement:
When scrolling the screen with Ctrl-Up or Ctrl-Down, the cursor disappears after reaching the top or bottom, and behaves inconsistently, on the top it stays resident, on the bottom it jumps to the position last visible on screen. Can you please make the cursor simply stay on the screen when scrolling (yes this would mean cursor movement)?
Another problem with the cursor movement:
When scrolling the screen with Ctrl-Up or Ctrl-Down, the cursor disappears after reaching the top or bottom, and behaves inconsistently, on the top it stays resident, on the bottom it jumps to the position last visible on screen. Can you please make the cursor simply stay on the screen when scrolling (yes this would mean cursor movement)?
I switched to Linux, bye and thanks for all the fish!
2SanskritFritz
That's not what I experience. I actually have the behaviour that Flint described:
That's not what I experience. I actually have the behaviour that Flint described:
And when pressing Left/Right/Up/Down after scroling with Ctrl+Up/Ctrl+Down (or mouse scroll) then there is always scrolled so that the cursor is in line 4, exept if the cursor is in line < 4 already, or if the cursor is still visible (then there is not scrolled).Expected: the cursor should move relatively to its current position and then the document should be scrolled to show the cursor (as in most text editors).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Partially confirmed here (Win2k SP4):2SanskritFritz wrote: Another problem with the cursor movement:
When scrolling the screen with Ctrl-Up or Ctrl-Down, the cursor disappears after reaching the top or bottom, and behaves inconsistently, on the top it stays resident, on the bottom it jumps to the position last visible on screen.
- Ctrl-Up/-Down both move the cursor out of the visible area,
- pressing cursor LEFT or RIGHT scrolls back to cursor position,
- cursor UP or DOWN set the cursor to random (?) positions => I'd consider this a bug.
- Viewing a binary file in binary mode (option 2) the restored cursor position seems to be completely random, also on cursor LEFT / RIGHT (maybe because of missing EOL-characters? tested with a PDF).
- Viewing in text mode (option 1): cursor keys
LEFT/RIGHT behave as expected (scroll to last cursor position, then move cursor),
UP/DOWN do not (move cursor to a random position or the 1st/4th line on top of the actual screen).
Examples:
Code: Select all
- set cursor to a position you can recognize, about half a screen above the file end
- scroll up with Ctrl-UP
- press cursor key UP or DOWN (fail, while LEFT / RIGHT work as expected here)
Code: Select all
- set cursor to a position you can recognize, about half a screen above the file beginning
- scroll down with Ctrl-DOWN
- press cursor key UP or DOWN (fail, while LEFT / RIGHT work as expected here)
Occasionally it jumped to line 4 instead of line 1 during the test, but I can't remember the condition for this.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
2StatusQuo
I can confirm your observations. Apparantly I hadn't testet the Up/Down situations well enough the first time
I can confirm your observations. Apparantly I hadn't testet the Up/Down situations well enough the first time

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar