emacsspacemacs

Find text in a project but within a specific folder


How do I do something like 'Find in Folder' from atom/vscode/sublime in spacemacs?

I have helm and projectile installed.

I have SPC-/ set to find in the complete project. But not able to figure out a way to find inside a folder/directory within a project.


Solution

  • You can always use the Emacs function:

    M-x find-grep-dired
    

    Emacs will ask you the directory and the string (or regexp) you want to search.

    This will open a dired *Find* buffer where you can, for instance: