rewrite-clj
rewrite-clj copied to clipboard
Rewrite Clojure code and edn
**Version** `rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}` **Platform** Clojure version: `1.11.1` **Symptom** Two issues: 1. When using `rewrite-clj.paredit/kill` incorrectly positions the zipper after performing the operation. 2. Docstring says that it should be...
**Problem/Opportunity** Movement functions return `nil` upon reaching the end of the movement. This possibility requires to always break the flow of manipulations with checks since for code that makes changes...
**Problem/Opportunity** At times we need to automate changes which requires us to repeatedly (inside code) search for values and make changes. Now while doing that operation on config.edn (or for...
The zip API has fns: - `whitespace?` - returns true if Clojure whitespace - `whitespace-or-comment?` - returns true if Clojure whitespace or comment All good. But... the zip API also...
**Problem/Opportunity** Sometimes it is hard to use `remove` because it always selects the previous node in a depth-first traversal. So after removing a selection may move arbitrarily deep in the...
**Version** `rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}` **Platform** Clojure version: `1.11.1` **Symptom** `wrap-fully-forward-slurp` kills all the indents of the code it is slurping **Reproduction** ``` (-> (z/of-string " [indented list of symbols]") z/down...
One of my primary goals for merging rewrite-clj v0 and rewrite-cljs into rewrite-clj v1 was to be deliberate about any API breakages. The idea was to keep breakages of public...
## Currently We use karma to verify that rewrite-clj works in the web browser. ## But Karma has been [deprecated](https://github.com/karma-runner/karma/blob/450fdfdac5b999967daec1020f1ac69cf9b854ab/README.md?plain=1#L12-L24). ## So There is no immediate need to switch to...
**Version** 1.1.45 **Platform** Operating System: any Clojure version: any JDK vendor and version: any **Symptom** `crewrite-clj` does not preserve CRLF whitespace when converted from zipper back to string, **Reproduction** On...
**Problem/Opportunity** It would be handy in some cases to short-circuit a prewalk early. E.g., if there's an `:uneval` reader literal or a `comment` block, I'd prefer to stop drilling down...