GithubHelp home page GithubHelp logo

Comments (5)

mahinshaw avatar mahinshaw commented on June 28, 2024 1

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.

ernestas avatar ernestas commented on June 28, 2024

Did you find a way to sort?

from clj-refactor.el.

Malabarba avatar Malabarba commented on June 28, 2024

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.

expez avatar expez commented on June 28, 2024

Sorting and pretty-printing would be a lot easier to do in the middleware.

from clj-refactor.el.

Malabarba avatar Malabarba commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.