Skip to content

Search in multiple directories? #14

@eduardoarandah

Description

@eduardoarandah

I've been wondering how to quickly search in multiple directories like sublimetext.

Seems that CtrlP doesn't support that
ctrlpvim/ctrlp.vim#436

NerdTree doesn't do it
preservim/nerdtree#215

My workflow always involves jumping from one directory to another.

Do you know a way of ?

  • Provide a folder list
  • Search with RipGrep in every directory
  • Merge those results
  • Give the list back to CtrlP

This Setting let me to it with one directory, but I wonder if there's a way of accomplish the same thing merging results in all open directories:

Plug 'kien/ctrlp.vim'
let g:ctrlp_show_hidden = 1

" https://github.com/BurntSushi/ripgrep
if executable('rg')
    let g:ctrlp_user_command = 'rg --files %s'
    let g:ctrlp_use_caching = 1
    let g:ctrlp_working_path_mode = 'ra'
    let g:ctrlp_switch_buffer = 'et'
endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions