Skip to content
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

Problem with ^ when there are fixed rows #288

Closed
slackhead opened this issue Aug 18, 2018 · 7 comments
Closed

Problem with ^ when there are fixed rows #288

slackhead opened this issue Aug 18, 2018 · 7 comments

Comments

@slackhead
Copy link

slackhead commented Aug 18, 2018

Git pull from 2018-08-17.
Using the included makefile.

Scenario:

The first two rows in a sheet are fixed.
I press # to go to last legit row, which turns out to be say 71.
Now I see fixed rows 0 and 1 at the top, and under those rows 60-71. The cursor is on 71. All this is expected behaviour.
I press ^ to go to row 0.
It /does/ go to row 0, but the screen doesn't move. I still see rows 0 and 1, with 60-71 underneath.

How do I go to row 0 and also scroll the screen at the same time? I can't see any way of doing it. I tried using zz or zt after ^, but they don't have the desired effect. All I can do is hold down page up until I reach the top. However, I did notice that using gg works, as does using g to goto a row under the fixed rows.

What I would expect to happen is that ^ should not only go to row 0, but position the screen to the top too. Perhaps there should be something similar to # that goes to the topmost legitimate cell (not including fixed headers)?

andmarti1424 added a commit that referenced this issue Mar 23, 2021
@andmarti1424
Copy link
Owner

@slackhead Please update to latest commit and try again.
Modified # with frozen row and you can also use commands
H, M, L to go to different parts of visible screen.

@andmarti1424
Copy link
Owner

@slackhead ?

@slackhead
Copy link
Author

slackhead commented Mar 27, 2021

Yep, works fine now. Thanks :-)

Could I make a suggestion though, that 'unfreeze' could take the same arguments as 'freeze', so that only certain rows/columns can be selectively unfrozen, instead of unfreezing everything? That would very useful.

@andmarti1424
Copy link
Owner

@slackhead could you describe what you have frozen?
actually you can only freeze one thing at the time and that is a current limitation it may need to be changed in future.
for instance, you cant freeze two rows.
if you freeze say row 0, and then row 8. the freeze over row 0 is lost.
so :unfreeze just acts over the last thing you froze.

@slackhead
Copy link
Author

For example, after 'freeze 0:1', doing 'unfreeze 1' would leave row 0 still frozen.

@andmarti1424
Copy link
Owner

Im not really sure about that. It would be useful to freeze multiple rows / columns. But thats another thing.
Please feel free to open a discussion on that topic, so others can discuss and give their opinions. thanks.

@andmarti1424
Copy link
Owner

I close this since ^ issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants