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

Live grep with args
695 stars 36 forks source link

Bug: Neovim blocked when searching for common query #50

Open calebdw opened 1 year ago

calebdw commented 1 year ago

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.

mkdir700 commented 1 year ago

Yes, I have also encountered the same issue.

mkdir700 commented 1 year ago

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.

weeman1337 commented 4 months ago

$ 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.