rewrite-clj icon indicating copy to clipboard operation
rewrite-clj copied to clipboard

Rewrite Clojure code and edn

Results 40 rewrite-clj issues
Sort by recently updated
recently updated
newest added

Yeah, it sounds weird, let me give some context: On [clojure-lsp](https://github.com/clojure-lsp/clojure-lsp), we have a completion code feature, where the user types something and we try to complete the code, so...

enhancement
hammock

**Problem/Opportunity** The idea of adding a helper function `top` has been proposed several times: #189, #125, #149 and perhaps others. Before making a decision about that feature, I think it...

**Problem/Opportunity** Rewrite-clj throws ex-info exceptions. It would be nice if a caller could easily tell if they came from rewrite-clj. **Proposed Solution** @borkdude suggested adding `:type :rewrite-clj` to ex-data. **Alternative...

The user guide and docstrings are vague around valid values for `tag`. Abbreviated from chat with @NoahTheDuke on Slack: Noah: > can the docs list the node types and give...

docs

Originally raised by me as https://github.com/lread/rewrite-cljc-playground/issues/5 Related to #113 - capturing valuable feedback from @sogaiu so I don't lose it. Need to review and evaluate more type related helpers. Snippit...

enhancement

I've been meaning to do this for a while. When asked, I have typically told folks that I expect the position tracking zipper incurs a performance hit, but maybe I...

docs

**Problem/Opportunity** Per its docstring, `rewrite-clj.zip/position` throws if `zloc` was created without position tracking. Because of this, several other functions can't be used with untracked zippers. **Proposed Solution** In zippers created...

**Problem/Opportunity** `find-last-by-pos` is slower than it could be, especially when used to find zlocs at the end of files. Suppose for example that you have a zipper at the root...

`rewrite-clj.zip/right` skips over whitespace, comments, commas, newlines, but does not skip over uneval nodes. I thought this was quite surprising. Is this intentional?

enhancement

Moved from TODO note in docs in user guide. Our map-node and namespaced-map-node model the structure of the source code. This is convenient when navigating through nodes as one would...

hammock