codemod: add 'replace:' flag to frontend search
Created by: rvantonder
Summary:
- 'replace:' qualifier to search. Active when
localStorage.codemodExp=true;location.reload()
is set. - Uses GQL API and SearchParams/Result. A replace operation can be seen a kind of "diff search". This has only a small effect on the current GQL schema. This is great, since the change is small and allows us to revisit alternative streaming or cursor-based streaming that's under discussion for search.
Example:
Test plan:
- Sane match/replace/file filter patterns
- Tested manually: Gate codemod GQL queries with
localStorage.codemodExp=true;location.reload()