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

Live grep with args
726 stars 40 forks source link

what's the advantage by using auto_quoting? #57

Closed zhengpd closed 1 year ago

zhengpd commented 1 year ago

The auto_quoting is enable by default. I read the doc and tried disabling it but it seems only enforce user to quote the search string. What's the advantage here? Appreciate if someone gives real search cases to understand the difference.

zhengpd commented 1 year ago

Auto quoting helps when search string like "exa -l" which includes hyphen.

weeman1337 commented 1 year ago

@zhengpd thank you for your question.

Do the examples in the README help?

If there is anything that can be changed to clarify this let me know by a comment here.

zhengpd commented 1 year ago

@weeman1337 The examples are fine, but it seems a search string with leading hyphen, quoted or not, won't match anything, For example, the "exa -l" is in one of my files, and searching with "-l returns empty result, but " -l got matches (note the whitespace before hyphen).