spacemod
Alternatives
You may find the following tools useful if spacemod is doing too much or too little for you. The primary focus of this list is on editor/IDE-independent tools, and preferably on those which can be composed into more complex shell-scripts.
-
spacemodis heavily inspired by fastmod and was specifically built to deal with shortcomings of regex.fastmodis much faster. -
ast-grepis a very easy to use AST-based code search tool. -
combyactually has grammars built-in for various filetypes to understand what wildcards are supposed to match in which contexts. It appears to be "a step up" fromspacemodthe same wayspacemodsyntax is a step up from regex. That goes for both expressiveness and complexity. -
codemodis another search-and-replace tool that has language-specific knowledge. It supports both basic regex replacements and more sophisticated transformations written in Python. -
spatchfrom the PFFF-suite appears to be very similar tocomby. -
gritqlseems similar toast-grep.
Other tools in the same space
- Beyond Grep has a table of
(regex-based) text search tools. The best one IMO is
ripgrep.