telescope-live-grep-args.nvim icon indicating copy to clipboard operation
telescope-live-grep-args.nvim copied to clipboard

Bug: Neovim blocked when searching for common query

Open calebdw opened this issue 2 years ago • 3 comments

Hello!

I think there needs to be some control over the blocking search time. I accidentally typed $ instead of \$ (to search for a PHP variable), and Neovim froze for several minutes.

calebdw avatar Mar 04 '23 17:03 calebdw

Yes, I have also encountered the same issue.

mkdir700 avatar Mar 10 '23 14:03 mkdir700

I have noticed a pattern where the program gets blocked while entering the second character. The CPU usage remains at 100% until the search is complete.

mkdir700 avatar Mar 10 '23 15:03 mkdir700

$ is a token for end of line in a pattern. There other dangerous tokens: ^ (start of line) and . (any char).

I think there should be a blocklist for prompts, that should not start a search. This can also be configurable.

weeman1337 avatar May 20 '24 09:05 weeman1337