Created
October 24, 2018 08:08
-
-
Save sweeneydavidj/40e0b8ad3c042563afb6f0bfad1e725c to your computer and use it in GitHub Desktop.
Spacemacs project search replace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPC s f (helm-files-smart-do-search) - this will bring up HELM File Completions | |
navigate to the directory from which to do the search - use C-h to go up one level if needs be | |
type the search string | |
hit C-c C-e (helm-ag-edit) | |
Once in helm-ag-edit edit as in a normal buffer | |
For example :%s/foo/bar/g | |
hit C-c C-c to save | |
For case-sensitive/insensitive toggle by | |
spc spc (HELM M-x) | |
toggle-case-fold-search | |
then search with /foo | |
and replace with :%s//bar/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment