You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let's say I have a slow-access mount at /home/myuser/slow-access-mnt. If I call :Telescope find_files and move the selection towards one of those files, neovim freezes until preview is ready or it times out.
the freezing comes from previewers.file_maker waiting on capture("file --mime-type -b …"), since it blocks waiting for that command's output. Replacing that call with an async call (probably using vim.uv) should avoid neovim freezing.
on the same matter, a "preview loading" message would be welcome as an UX plus
Neovim version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 13.0.0
- OK fd: found fdfind 8.6.0
===== Installed extensions ===== ~
Telescope Extension: `frecency` ~
- OK nvim-web-devicons installed.
- OK ripgrep installed.
Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured
Steps to reproduce
have a mount that have slow read (you can try using mkfifo /some/path to simulate a file with slow read)
:Telescope find_files
do stuff while preview is loading for that mount
Expected behavior
neovim is responsive while preview is loading
maybe show a "preview is loading" message
Actual behavior
check that stuff inputted in last step is not inputted right away, but rather queued until previewer is done
Minimal config
-- any recent Telescope version
The text was updated successfully, but these errors were encountered:
Description
let's say I have a slow-access mount at
/home/myuser/slow-access-mnt
. If I call:Telescope find_files
and move the selection towards one of those files, neovim freezes until preview is ready or it times out.the freezing comes from
previewers.file_maker
waiting oncapture("file --mime-type -b …")
, since it blocks waiting for that command's output. Replacing that call with an async call (probably usingvim.uv
) should avoid neovim freezing.on the same matter, a "preview loading" message would be welcome as an UX plus
Neovim version
Operating system and version
debian 12
Telescope version / branch / rev
a0bbec2
checkhealth telescope
Steps to reproduce
mkfifo /some/path
to simulate a file with slow read):Telescope find_files
Expected behavior
neovim is responsive while preview is loading
maybe show a "preview is loading" message
Actual behavior
check that stuff inputted in last step is not inputted right away, but rather queued until previewer is done
Minimal config
-- any recent Telescope version
The text was updated successfully, but these errors were encountered: