princejoogie / dir-telescope.nvim

Perform telescope functions in a selected directory
Other
148 stars 9 forks source link

feat: load the search window faster #12

Open kaka-ruto opened 1 year ago

kaka-ruto commented 1 year ago

What would you like?

Telescope loads in under a second, but this extension's search window loads in like 8 seconds in a large project. It would be nice if the two would be comparable in terms of speed.

Additional notes

https://user-images.githubusercontent.com/16320124/231536926-7a67103a-3aa9-4186-99ad-d5cd56b9fddf.mov

chaoslogick commented 1 year ago

Commenting to second this issue. The same thing happens to me. Takes several seconds for the window to load

kaka-ruto commented 1 year ago

I found that I needed to install the fd-find package on https://github.com/sharkdp/fd, which this project uses if it is installed, or else defaults to the default find which is very slow. Here's the code https://github.com/princejoogie/dir-telescope.nvim/blob/1f3a041f870d1edf9cc64635e79f4b829e755978/lua/dir-telescope/util/init.lua#L19

dudicoco commented 7 months ago

Even with fd installed there is an issue with the extension - it won't render until the fd command has finished running. With the default telescope commands the telescope UI renders while the results are being populated, giving a better experience.