-
-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files with this kind of title [...title] not opening correctly on find_files #1171
Comments
tbh, it's weird use case 😄. I can confirm the bug, and it's because telescope.nvim/lua/telescope/actions/set.lua Lines 132 to 135 in dcee6c8
executing
So it must be something todo with either normalize path or make_relative For the life of me, I couldn't spot out what maybe causing this. |
So from what I can tell, the problem is coming
|
OK I've found the problem and a possible fix. I'll open a ticket on plenary |
@itmecho open a pr better |
Meant to open it as a draft as I didn't have time to get everything working at work =[ Tidying it up now |
@tami5 Hopefully it's better now. The tests pass locally and I tested it with telescope and it now opens the files correctly |
I just merged the plenary PR so this should be fixed. Big thanks to @itmecho Closed by nvim-lua/plenary.nvim@de5acdc |
I am also having this issue, did you figure it out? |
It happens to me too. My workaround is to use a custom find_command:
live_grep also fails. It shows an empty buffer when navigating to a file inside a (folder) but I did not found a workaround yet. |
Description
Each time I trigger the command to find files with Telescope, I search for a file with this kind of title
[...title].js
And it doesn't open, it shows me a blank file, but the file es full of code
I believe is because it asumes the extension is:
..title].js
, Formatter also has trouble with this filesNeovim version
0.5.0
Operating system and version
macOS 11.5.2
Steps to reproduce
1.- Create a file with the title [...title].js
2.- Try to open it with find_files command, I use this:
<Cmd>Telescope find_files find_command=rg,--ignore,--hidden,--files<CR>
Expected behavior
No response
Actual behavior
If I open the file from nvimTree, it opens fine
If I search the file it shows me correctly the preview
But once I opened the file is blank, it doesn't overwrite the file, just show it blank
Minimal config
The text was updated successfully, but these errors were encountered: