telescope.nvim
telescope.nvim copied to clipboard
Windows: Use / instead of \ in paths
Typing \ when searching on Windows is really annoying, I would rather use forward slashes.
Describe the solution you'd like A clear and concise description of what you want to happen.
There should be a way to make 'assets/image' search resolve 'assets\image'.
A workaround for this would be to specify a custom find_command
.
I had the same issue on my windows machine but if you have ripgrep there's a handy --path-separator
flag you can use to change the default \
on windows.
This is what I have for reference
pickers = {
find_files = {
hidden = true,
find_command = {
'rg',
'--files',
'--color=never',
'--no-heading',
'--line-number',
'--column',
'--smart-case',
'--hidden',
'--glob',
'!{.git/*,.svelte-kit/*,target/*,node_modules/*}',
'--path-separator',
'/',
},
}
}
A workaround for this would be to specify a custom
find_command
.I had the same issue on my windows machine but if you have ripgrep there's a handy
--path-separator
flag you can use to change the default\
on windows.This is what I have for reference
pickers = { find_files = { hidden = true, find_command = { 'rg', '--files', '--color=never', '--no-heading', '--line-number', '--column', '--smart-case', '--hidden', '--glob', '!{.git/*,.svelte-kit/*,target/*,node_modules/*}', '--path-separator', '/', }, } }
I tried convert the rg
commands to fd
but I couldn't it to work, do you know if there is way in fd
?
A workaround for this would be to specify a custom
find_command
. I had the same issue on my windows machine but if you have ripgrep there's a handy--path-separator
flag you can use to change the default\
on windows. This is what I have for referencepickers = { find_files = { hidden = true, find_command = { 'rg', '--files', '--color=never', '--no-heading', '--line-number', '--column', '--smart-case', '--hidden', '--glob', '!{.git/*,.svelte-kit/*,target/*,node_modules/*}', '--path-separator', '/', }, } }
I tried convert the
rg
commands tofd
but I couldn't it to work, do you know if there is way infd
?
The --path-separator
option should be working the same way with fd
as well. I think you might have encountered a bug.