Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spacemacs: Search for file in multiple projects

Tags:

spacemacs

I know I can use "SPC p f" to search for a file in the current project, which means git repository for me. Now, in my current project we have multiple git repos, and I'd like to search for files in all of them. Luckily, they all reside in the same directory (e.g. ~/projects/x/).

Is there a command in Spacemacs that lets me search for files in all the git repos under ~/projects/x?

like image 996
daniel kullmann Avatar asked Feb 05 '23 21:02

daniel kullmann


1 Answers

I believe you can do it with SPC s f. When you activate it:

  1. Prompts you to select a directory to search
  2. Allow you to enter a search string, showing results in the HELM window

In general, SPC s shows all keybindings for general search, where f is for files.

like image 114
phss Avatar answered May 16 '23 09:05

phss