-
Notifications
You must be signed in to change notification settings - Fork 17
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
Persist cursor position per-buffer #2
Comments
Moving the discussion of cursor position here so we can track separately. This does clarify things! We persist the cursor position for all windows, but don't store the last cursor position for any buffers that are not open in a window. I haven't personally felt the need for this because I use the autocmd mentioned in |
splendid! |
The implementation was easier than I thought. Give it a try; it worked fine in my testing but there may be some edge cases |
Works flawlessly! maybe add a config option to disable this feature (I'd vote for it to stay enabled by default tho). |
Even better than a repro, A showcase of the "issue".
Notice:
main.lua:3
andside.lua:2
main.lua
is open.main.lua
is naturally restored (as you've noted)side.lua
cursor position is reset to the top (the issue)The issue is that resession is only saving a single cursor position, what I want is for it to save a cursor position for each file (not open buffers)
I hope this has made it clearer.
Originally posted by @RaafatTurki in #1 (comment)
The text was updated successfully, but these errors were encountered: