You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have following mapping to search the word under cursor which works just fine, only if I first cd into the directory where these files names exist. map('n', 'gf', [[<CMD>lua require'telescope.builtin'.find_files({find_command={'fd','-L', '-H', '-p', vim.fn.expand("<cword>"), vim.fn.getcwd()}})<cr>]], {})
When I select a project from picker it changes the current working directory to that project location. but now if I try to search the word under cursor it does not search that. I am not quite getting what I am missing here.
The text was updated successfully, but these errors were encountered:
Another thing to notice is if I enter manually the path of the project then it works.
In the following test case, I select the project from the telescope picker and entered into the project, then selected a file. now from that file I want to search keyword name under my cursor using goto. the expected behaviour is I should see popup with all the files it has found with that name.
Working lua require'telescope.builtin'.find_files({find_command={'fd','-L', '-H', '-p', vim.fn.expand("<cword>"), '/Users/userName/folder1/folder2'}})
I have following mapping to search the word under cursor which works just fine, only if I first cd into the directory where these files names exist.
map('n', 'gf', [[<CMD>lua require'telescope.builtin'.find_files({find_command={'fd','-L', '-H', '-p', vim.fn.expand("<cword>"), vim.fn.getcwd()}})<cr>]], {})
When I select a project from picker it changes the current working directory to that project location. but now if I try to search the word under cursor it does not search that. I am not quite getting what I am missing here.
The text was updated successfully, but these errors were encountered: