- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
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
End button in MC viewer jumps too far #2135
Comments
Yes, this is annoying, please fix! At least now viewer scrolls down fast with large files too. |
marrtins, birdie
birdie, set |
mc-4.7.1-2.fc13.i686
Replying to angel_il:
That didn't help at all, mc still jumps beyond the end of file and shows a lot of ~, see the attached screenshot. |
With "mcview_eof=~" set. |
My version:
GNU Midnight Commander 4.7.1 |
+1 for fixing it please! This is a very annoying regression in the just-to-be-released stable 4.7.2.
In order to see as much as fits on the screen from the end of the file, instead of pressing End now I have to press End, then Pageup, then Down. Or End and then longpress the Up key.
The behavior of the End key should be the same as in the panels: the last line of the file should appear on the bottom of the available area; just as the last file appears in the bottom row, with lots of other filenames also visible in the mean time. |
There are some non-trivial problems with this issue. We would not fix this problem very quickly and finally get a slow viewer in some cases. |
Well... created branch 2135_viewer_jump_to_eof
Changesets:
Review, please. |
These patches work nice for me so far. Thanks very much guys! |
|
|
|
Thanks very much guys, especially for making it into 4.7.2!
Quick question: are you maybe considering backporting the second part of the patch to the stable 4.7.0.x branch? PageDown was able to scroll up too much, ever since my earliest MC memories, and finally it no longer happens, hooray! Nice usability improvement! |
Replying to egmont:
I do not know and am not sure whether you need to backport new viewer into 4.7.0.х |
Oh, the whole viewer is new? I thought it would be just a trivial merge. Forget it then :) |
Yes, for stable we have old slow viewer. For 'master' branch viewer was rewritten. |
With this patch you've broken one of the old viewer features (for me, see #1778). So I've got hopefully compromise proposition for the first part, which also addresses two of three issues I've found:
it's not true: from line 159 condition - 'visible part' (view->dpy_end - view->dpy_start) larger than 'remaining part' (last_byte - view->dpy_end) doesn't mean we'll end up at the end, as it depends at least on forward newline count we don't know. Oh, and it is being set at 168.
we don't track view->dpy_end so it's pointless to check this condition, the value will be updated later.
What I suggest is fixing PgDn in a way, that it switches to one-line mode after EOF and add a check to ensure, that at least one last line stays visible (4.7.1 behaviour of end/pgdn was irritating indeed). |
mcview_move_down.patch |
|
|
Two slight changes to my patch:
|
|
I've attached new patch.
With this pathch, PageDown at the last page scrolls file line by line instead of entire page. |
In my point of view, this should be feature... ;)
Created branch 2135_end_button_in_viewer
review, please. |
Replying to andrew_b:
IMO when we've reached the end of file, MC just shouldn't do anything if I try to scroll down even more. Scrolling line by line will most likely confuse people ("WTF is my MC doing?") |
Replying to birdie:
And IMO it should be possible to scroll so high as it was possible to do earlier: #1778. Switching to 1-line mode prevents user from immediately scrolling off entire content, and notices him about file coming to the end (if he doesn't see percentage indicator). |
|
patch made by gotar, therefore my vote here. |
|
Important
This issue was migrated from Trac:
birdie
(aros@….com)egmont@….com
(@egmontkob),gotar@….pl
I don't know if it's already been reported but since MC 4.7.1 it became terribly inconvenient to jump to the end of any file in mcviewer: end button jumps such a way the only and last line of a file is visible, so you have to scroll back a little to actually see a file tail.
If you try to tail view dozens of files, scrolling back each one of them becomes a very tedious task.
Note
Original attachments:
birdie
(aros@….com) onApr 14, 2010 at 8:57 UTC
gotar
(gotar@….pl) onMay 9, 2010 at 17:56 UTC
andrew_b
(@aborodin) onNov 4, 2010 at 14:17 UTC
The text was updated successfully, but these errors were encountered: