Closed 3Xpl0it3r closed 1 year ago
I guess this is the same as my issue that I tried to search for now.
When I write a file path I often end up with a empty or incorrect list of files.
If I wait and then tapping the up arrow to navigate in the search result it re-renders and I then see the correct result.
If you, @3Xpl0it3r, navigate inside the list of results when this issue occures, do you then get the new correct list?
I guess this is the same as my issue that I tried to search for now.
When I write a file path I often end up with a empty or incorrect list of files.
If I wait and then tapping the up arrow to navigate in the search result it re-renders and I then see the correct result.
If you, @3Xpl0it3r, navigate inside the list of results when this issue occures, do you then get the new correct list?
Same here.
Description
&esmp;Call
Packer:refresh
cannot refresh results in finder; Expect: display "a,b,c" after `picker:fresh(picker.finer, {}) Actual: display "1,2" example code blow:Neovim version
Operating system and version
macOs 11.6.1
Telescope version / branch / rev
telescope master
checkhealth telescope
Steps to reproduce
-- 创建一个简单的 finder,返回一些示例数据 local example_finder = finders.new_table({ results = { "1", "2" }, })
-- 创建选择器 local picker = pickers.new({}, { prompt_title = "Example Picker", finder = example_finder, sorter = sorters.get_generic_fuzzy_sorter(), })
-- 渲染 Picker
picker:find() -- 替换 finder 中的结果 picker.finder.results = { "a", "b", "c" }
-- 刷新 Picker,并重新渲染 picker:refresh(picker.finder, {})