Open miversen33 opened 2 years ago
Further notes, the file is opened when telling Telescope to open it, so it appears this is just a visual issue and not prohibitive to work flow.
fd, for what its worth i've also seen this with live grep and other pickers but couldnt track it down yet. It only appeared randomly for me. I'll have to try these reproduce steps later
It's the mime
type check via file
. I have the previewer turned off by default and didn't get that message in the prompt.
Commenting out mime-type checking immediately or using plenary.jobs
as opposed to io.popen
(as per https://github.com/nvim-telescope/telescope.nvim/pull/1910) immediately solves the problem as the error message just leaks from the way we currently do mime type checking.
I hope to be able to complete the previewer RFC before 0.1 but have an important conference deadline end of June. Let's see. I have no sense of urgency to quick fix this stand alone as I suppose it's a rather rare issue :sweat_smile:
Description
If you have a file with a truly awful file name (for example
hello world %^&*()_-="'<,>.?|[{]}\
), Telescope barfs and drops an error in the input box telling you thatsh
has cant resolve the name correctly. This error does not go away unless you close and reopen the file browser (and dont navigate to the awful file).Discovered while testing another plugin and verified on my machine.
Neovim version
Operating system and version
Ubuntu 20.04
Steps to reproduce
1) Create garbage file
2) Open neovim with minimal config
3) Open Telescope
4) Navigate cursor over garbage file
Expected behavior
Telescope File Browser should be able to handle awful (but technically valid) file names
Actual behavior
String quoting failure it looks like?
Minimal config