-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Keep viewport when switching files #417
Comments
you want the same position the viewport was in before you left the file? is that what you are asking? |
I also would like that. |
Okay, it seems like an okay feature. I don't really use it nor notices, so if someone would like to take a swing at saving the additional information required in the list items, context and using that on select I'd be just fine merging it in |
Okay, I tried some stuff but got a lil confused, so here harpoon/lua/harpoon/config.lua Line 194 in 9031087
So is this not working? Or am I doing something wrong. |
This wiki is related to the problem viewport problem @lpanebr . Might just use this for consistency everywhere |
@lars-vc Thank you! This is just AWESOME and works like magic! ❤🎉
|
I am back, I'll review this today and merge/give feedback |
What issue are you having that you need harpoon to solve?
I would like to keep the viewport after switching files, currently the line is always centered on the screen.
Keeping the viewport would only be necessary in the same session (after nvim reboot this is not required)
Why doesn't the current config help?
No options are provided for this
What proposed api changes are you suggesting?
Vim already has some options to keep the viewport with winsaveview() and winrestview(view), these could be used to save the viewport.
The text was updated successfully, but these errors were encountered: