nvim-telescope / telescope-live-grep-args.nvim

Live grep with args
726 stars 40 forks source link

`grep_visual_selection` not working when selecting line with white space prefix #55

Open weeman1337 opened 1 year ago

weeman1337 commented 1 year ago

Steps to reproduce the issue:

Expected:

Live grep with test

What happens instead:

Live grep with empty string

gstokkink commented 1 year ago

Maybe trimming should also not be the default for visual selection? Not sure. If you visually select <space>foo for instance, do you want to grep for <space>foo or foo? Doesn't really matter I guess, seeing as we have the option to turn it off.

weeman1337 commented 1 year ago

https://github.com/nvim-treesitter/nvim-treesitter/blob/master/lua/nvim-treesitter/incremental_selection.lua#L25

weeman1337 commented 1 year ago

~Once it is available this plugin should use https://github.com/neovim/neovim/pull/21115~

https://github.com/neovim/neovim/pull/27578