Grep Panel adds the following commands to the command palette:
Grep Panel: Grep...
Grep Panel: Copy Results
Grep Panel: Clear Results
For the Grep... command, the query box is populated with either:
the selected text, or
the word at the cursor if no text is selected.
You will notice that the format of the query includes -- "...". This is
because the text is used directly in the command invocation to allow extra flags
to be passed (e.g. -i). Consequently, if you want to include spaces in your
pattern, you should surround your query with quotes: e.g. "hello, world".
Thanks
Thanks to ripgrep for being an
amazingly fast drop-in for grep.
Thanks to vim-ripgrep for the
inspiration. I use this all the time in vim and miss it in VS Code.