-
Notifications
You must be signed in to change notification settings - Fork 194
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
feature: [explorer]Improve the performance of cursor jump #869
Comments
That's not normal. It seems to be the git status command that is slow on your machine for some reason. Any ideas? |
Disable git status to test |
So is it possible to not always run the |
I will make a recording after disabling the |
That is extremely slow. What about the There really must be something wrongly configured somewhere on your system. I will however change it so that slow git commands don't prevent navigating the list. |
It is not slow, but a little bit jumpy? |
This is just an academic docker environment, Ubuntu 22.04. I think there is no problem for |
I just changed it so that git status no longer blocks anything. Closing. |
I find that neo-tree also displays the icons asynchronously when opening the first time, but when running the second, third, and so forth, time, the icons are displayed instantly. Maybe it uses some cache trick. |
you mean the git icons? So does the snacks picker. Did you update? |
Yes, I have updated to the latest version of Snacks. I mean the git icons displayed in Snacks.explorer each time just like they displayed in neo-tree the first time. When they displayed the following times in neo-tree, I cannot see any delays. |
ok, you probably mean the directory status symbols. |
Just changed that as well. You should no longer see the delays for git status. |
ok, now I understand what you mean. |
And I also had pushed a 1 second sleep for testing, which didn't help :) |
try again |
This is getting a bit annoying tbh. On my laptop there's literally no visible delay. Never has been before I started all these changes. I can indeed change it, but seriously, just fix your computer... |
Is there a hidden or ignored file in there? |
fixed |
Looks pretty beautiful. Thank you so much. I think my dream file explorer has been born. I have been sitting in front of my computer and refreshing the Snacks repo every few minutes. I am so excited and appreciated for what you have done. Have a good night. On my timezone, it is 4:15 AM now.🤣 |
Thank you and get some sleep! :) |
Also, when |
When the file watcher is disabled, only buffer writes and lazygit terminal closes will result in a git refresh. I can't reproduce that issues when the explorer opened. But I'm also not sure I fully understand what you mean. |
I mean before |
Did you enable the main preview for explorer? |
Just tried with the minimal repro and also can't reproduce this there |
I think the problem comes from the preview, when I have layout = { enabled = false, preview = "main" } removed, |
Sorry, my bad. The config should be: layout = {
preview = {
enabled = false,
main = true,
},
}, |
I find the problem, |
fixed |
Awesome! Thank you so much. |
You no longer need inotity-tools. I've changed the implementation since to no longer use NEovim's file watcher implementation, My new implementation works on all platforms, without any additional files needed. |
I have uninstalled |
Can you check again? |
I just updated and tested with LazyVim, nothing has changed, on both WSL and docker. |
This is really annoying since I can't reproduce it. Start with opening neovim from an actual project diretcory. There's nothing for me to fix if I can't reproduce it. |
ok, I can reproduce it in the exact same way indeed. |
If you'd keep the explorer open it would update properly. |
Yeah. Indeed. 🤣 But usually, we would like to code in the full-screen, as it is relatively small on a laptop. |
ok, check again. |
Tested, OK! Thank you so much. |
Did you check the docs?
Is your feature request related to a problem? Please describe.
Hi, is it possible to improve the performance of the cursor jump in Snacks.explorer? Currently, it is a little bit sluggish, as you can see in the recording of the comparison between neo-tree and Snacks.explorer.


neo-tree:
Snacks.explorer:
Describe the solution you'd like
Just make the cursor jump a little bit more smoother.
Describe alternatives you've considered
Borrow the solution from neo-tree?
Additional context
No response
The text was updated successfully, but these errors were encountered: