Search code examples
spacemacs

Spacemacs: Search for file in multiple projects


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?


Solution

  • 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.