jremmen / vim-ripgrep

Use RipGrep in Vim and display results in a quickfix list
MIT License
541 stars 99 forks source link

When is possible, uses NERDTree to get the RgRoot #54

Closed joelxr closed 2 years ago

joelxr commented 3 years ago

In my current workflow, I've found it to be extremely compelling. Having RgRoot with the same value as NERDTree's root makes a lot of sense. With a multi-project workspace, such as:

- multi-project <NERDTree root>
  - project-a
  - project-b
  - project-c
  ...

When you need to search inside multi-project folder instead of each project, NERDTree can help out. So basically, when the NERDTree is available uses its root with ripgrep, otherwise use de previous behavior.