Comments (5)
As a note. I have just found the built in sort-lines
to be useful here. The only thing I find painful is the delimiters (braces) will get sorted to, so the map pairs need to be on their own lines
from clj-refactor.el.
Did you find a way to sort?
from clj-refactor.el.
Honestly, I think this could go in clojure-mode. Now that it has vertical alignment of values, might be nice to sort keys too. @bbatsov WDYT?
from clj-refactor.el.
Sorting and pretty-printing would be a lot easier to do in the middleware.
from clj-refactor.el.
I think sorting is simpler in the client. There's nothing complex about sorting key-val pairs alphabetically, so there's no need to add a layer of complexity by involving the server.
Besides, by working directly with the text (instead of sending it back and forth as data) there is less stuff you need to worry about (like accidentally losing/adding metadata, or deleting comments).
from clj-refactor.el.
Related Issues (20)
- Ability to opt out of overlays HOT 7
- Submit to NonGNU ELPA
- Add Project Dependency should check for duplicates HOT 1
- cljr--inject-jack-in-dependencies adds refactor-nrepl/refactor-nrepl twice when cider-preferred-build-tool is not lein HOT 4
- cljr--insert-in-ns does not distinguish :require and :require-macros (via cljr-slash) HOT 6
- cljr-slash: Wrong type argument: listp HOT 4
- cljr-clean-ns erroneously removes :as-alias in clj namespaces HOT 1
- Document (or remove) pkg-info dependency HOT 6
- `cljr-sort-project-dependencies` drop :dependencies section when using managed-dependencies HOT 2
- cljr-slash magic require js/ behavior is determined by file type, not language context HOT 2
- cljr--ns-alias-at-point does not handle quasiquote, sharp-quote and dotted aliases HOT 1
- Combine cljs and clj namespace alias candidates for magic requires HOT 15
- Ability to specify context in `cljr-magic-require-namespaces` HOT 4
- Create cljr-slash variant that uses the `suggest-libspecs` middleware op HOT 9
- `cljr--point-in-reader-conditional-branch-p` may block and is incorrect HOT 1
- Question: how to install `clj-refactor` via `use-package` declaration instead of imperative `package-install`? HOT 2
- Enhancement: trying to install and configure `clj-refactor` with the declarative `use-package` instead of imperative `package-install` HOT 1
- cljr-add-project-dependency throws `java.io.EOFException` HOT 6
- `cljr-rename-symbol` not working properly when narrowing is in effect HOT 2
- cljr-slash breaks whenever there's a Unicode character used as an alias in a codebase HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-refactor.el.