-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
find_file errors if in a folder with special characters #2675
Labels
bug
Something isn't working
Comments
4 tasks
This seems to be an issue in a few places, wonder if a helper for If you have
|
Hey yeah this is a regular occurrence I've been noticing that's been hard to fix due to how widespread our usage of I have this PR but it looks like I might be missing some instances. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
This is likely related to #2345
If a file has brackets and a dash in the name, using find_file will result in
Reverse range in character class
hereApplying the same fix as #2345
local cwd = vim.fn.expand(vim.fn.escape(opts.cwd or vim.loop.cwd(), "$?*[]"))
fixes this issue, though I'm not entirely sure if this breaks any intentional functionality.Neovim version
Operating system and version
WSL Fedora release 38 (Thirty Eight)
Telescope version / branch / rev
telescope 0.1.x
checkhealth telescope
Steps to reproduce
mkdir '[will-fail]'
cd '[will-fail]'
lua require('telescope.builtin').find_files()
Expected behavior
Expect to be able to find files inside the directory
Actual behavior
If a file has brackets and a dash in the name, using find_file will result in
Reverse range in character class
Minimal config
The text was updated successfully, but these errors were encountered: