file_previewer
stale for directories after creating/moving files
#2414
Labels
bug
Something isn't working
Description
This is primarily a downstream
telescope-file-browser
issue.Currently, from what I can tell, the
file_previewer
previewer caches buffer numbers in a local variable calledbufname_table
insidetelescope.previewers.buffer_previewer.new_buffer_previewer
.This applies mostly to directories when using
telescope-file-browser
but when files are created/moved into a directory while the picker is active and the preview for that directory path is already cached, the previewer shows the cached preview which is now stale.I'm wondering if it's feasible to expose
bufname_table
as part of the previewer's state (picker.previewer.state.bufname_table
) so that we can manipulate this cache downstream on certain actions.Open for discussion and willing to submit a PR.
Neovim version
Operating system and version
details in the above linked issue
Telescope version / branch / rev
details in the above linked issue
checkhealth telescope
Steps to reproduce
details in the above linked issue
Expected behavior
No response
Actual behavior
details in the above linked issue
Minimal config
The text was updated successfully, but these errors were encountered: