comby
comby copied to clipboard
A code rewrite tool for structural search and replace that supports ~every language.
**Describe the bug** A newline is inserted after a rewrite occurs in version 1.7.0 **Reproducing** Previous behavior ```bash # Command echo "[HttpPOST]\n[HttpPOST]" | docker run -i comby/comby:1.6.0 '[Http:[method]]' 'Method :[method]Thisisthesameline'...
One of the use cases for this is to do automated spell checking on specific pattern. For example, I want to correct misspelling found in the JSDoc comment and logger...
**Describe the bug** Does Comby support YAML file. Can it parse it and do search and replace. Only yaml tool that is out there that can do this is python...
I have a series of rewrite rules I've been working with lately with some reafactorings on our Java code base: ``` [remove-import-notnull] match=''' import org.jetbrains.annotations.NotNull; ''' rewrite="" [remove-method-notnull] match=''' :[leading~^\s+]@NotNull:[line]...
On several code changes, I've found myself switching implementations of - such as: ``` [change-guava-map-creation] match="Maps.newHashMap()" rewrite="new HashMap()" ``` Here, I'm removing the use of a call from the Guava...
**Is your feature request related to a problem? Please describe.** I'm running comby on a big project with lots of build files stored in the same tree as the git...
Follow up to 16f8a20 for omega engine. Isn't quite working yet and will do more later, see `TODO`.
Maybe we can have an extension for VSCode to provide a useful text replace tool.
For better or for worse, people use comments to deactivate code. How about a way to match within commented out code? I am not sure if this is as simple...