Coder Social home page Coder Social logo

Comments (8)

greglook avatar greglook commented on September 1, 2024 4

This does seem like it would be a good optional feature. You would need to write a formatting rule that looks for maps and various kinds of bindings with alternating pairs, then figure out how much whitespace needed to be between each binding to align with the longest one.

from cljstyle.

robhanlon22 avatar robhanlon22 commented on September 1, 2024 2

Just kidding, @dparis is going to take a stab at it. I know this because I work with him. You're on the hook now, buddy.

from cljstyle.

dparis avatar dparis commented on September 1, 2024 1

Update: I've gotten a first pass implementation up on my fork https://github.com/dparis/cljstyle/pull/1/files

There are a few known cases that aren't working that I still need to fix, and I'd like to do a code quality pass, but overall seems to work decently. I'll submit a PR against upstream once those things are sorted out.

from cljstyle.

robhanlon22 avatar robhanlon22 commented on September 1, 2024

Looks like cljfmt has had a WIP PR open for a while for this: weavejester/cljfmt#77

from cljstyle.

mpenet avatar mpenet commented on September 1, 2024

I personally would like that to be doable both ways if possible (via config), turn a vertical style code base into "normal" alignement or the inverse.

from cljstyle.

robhanlon22 avatar robhanlon22 commented on September 1, 2024

Excellent. Here's the prior art:

from cljstyle.

robhanlon22 avatar robhanlon22 commented on September 1, 2024

I'll take a stab at this when I have some time.

from cljstyle.

felipetanios avatar felipetanios commented on September 1, 2024

Hi guys, i was just trying enable this in cljstyle and bumped in this issue and there is a help-needed label, is there a way to help in this?

from cljstyle.

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.