Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Hanaasagi
Copy link
Contributor

Close #348

What does this PR do?

  • Precache n+1/n-1 page for better experience. (n - 1 also has this problem, run yazi and press G)

Test

simplescreenrecorder-2023-11-07_20.30.23.mp4

@sxyazi
Copy link
Owner

sxyazi commented Nov 7, 2023

Thanks for your PR!

I've changed it to use a bound as the condition, which should make it more precise. Would you like to give it a review?

@sxyazi sxyazi changed the title fix(render): precache n-1 and n+1 pages fix: precache n-1 and n+1 pages Nov 7, 2023
@Hanaasagi
Copy link
Contributor Author

Thanks for your help. And I found another case that hasn't been fixed. It seems that the n+1 is not cached after the initial load. I push a new commit for this.

simplescreenrecorder-2023-11-07_23.41.47.mp4

@sxyazi
Copy link
Owner

sxyazi commented Nov 7, 2023

So weird, I can't reproduce it, not sure what's going wrong...

@sxyazi
Copy link
Owner

sxyazi commented Nov 7, 2023

Ah, I reproduced it when I enlarged my terminal window. I created a new commit that should fix it.

@Hanaasagi
Copy link
Contributor Author

Tested it locally, and it works as expected. Thank you! 🎉

@sxyazi
Copy link
Owner

sxyazi commented Nov 8, 2023

Okay, let's merge it now. Thanks for your test!

@sxyazi sxyazi merged commit a0ba853 into sxyazi:main Nov 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some results are not colorized when searching

2 participants