clj-refactor.el
clj-refactor.el copied to clipboard
A CIDER extension that provides powerful commands for refactoring Clojure code.
`cljr-magic-require-namespaces` doesn't currently allow specifying its intended context (:clj, :cljs). This can easily cause incorrect suggestions for cljr-slash. I'd suggest one of the following: * Introduce new defcustom, e.g. `cljr-jvm-magic-require-namespaces`...
This is the companion feature issue for https://github.com/clojure-emacs/clj-refactor.el/pull/525 as requested. Currently if a `cljr-slash` magic require is triggered in a project with mixed cljs, cljc and clj files, `cljr-slash` first...
Rewrites #521 using a defcustom `cljr-magic-require-prompts-includes-context`. This is also the followup to #522, which introduced refactors to cleanly apply this change. This is an improvement to the `cljr-slash` magic require...
Context: https://github.com/clojure-emacs/clj-refactor.el/pull/522#discussion_r918170325 Specifically this is discussing the behavior of `cljr--js-alias-p`, which ignores a magic require alias prefix "js" if and only if it's in a cljs file. It will attempt...
## Expected behavior When using `:managed-dependencies` in a leiningen project, the `:dependencies` section is dropped while using `cljr-sort-project-dependencies` instead of being sorted ## Steps to reproduce the problem Assuming this...
## Expected behavior Cider connects as usual. ## Actual behavior ``` [nREPL] Establishing direct connection to localhost:7002 ... [nREPL] Direct connection to localhost:7002 established error in process filter: cljr--version: Symbol’s...
## Expected behavior With both a build.boot and project.clj, (setq 'cider-preferred-build-tool 'boot) M-x cljr-add-project-dependency The dependency should end up in the build.boot file. ## Actual behavior This will end up...
I enjoy having my namespace forms automatically sorted after I invoke `cljr-add-require-to-ns`. However, when I invoke `cljr-add-project-dependency`, I must then invoke `cljr-sort-project-dependencies` in order to have my project dependencies re-sorted....
Hi! Cljr fails to rename symbol in code which is successfully compiled and run by`lein test`. ## Expected behavior 1. `cd /Users/YourName/Desktop`. 2. `git clone https://github.com/developer2019/example` 3. Open `/Users/YourName/Desktop/example/src/anagram.clj` in...
## Expected behavior `cljr-clean-ns` does not remove used import. ## Actual behavior In a CLJS file, given the following: ```clojure (ns foo.bar (:import [goog.i18n NumberFormat] [goog.i18n.NumberFormat Format])) (defn money [n]...