Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to leave manual alignment unchanged #2953

Open
imrekoszo opened this issue Aug 30, 2024 · 0 comments
Open

Option to leave manual alignment unchanged #2953

imrekoszo opened this issue Aug 30, 2024 · 0 comments

Comments

@imrekoszo
Copy link

Sometimes I like to organize data in a tabular-ish format, for example vectors that represent tables, case, cond, are forms etc.

[1   2   3
 10  20  30
 100 200 300]

(case x
  1   :one
  10  :ten
  100 :hundred)

{:foo  1
 :quux 2
 
 :other/bar    55
 :other/longer 66}

Cursive currently formats this to:

[1 2 3
 10 20 30
 100 200 300]

(case x
  1 :one
  10 :ten
  100 :hundred)

;; if map value alignment is on
{:foo          1
 :quux         2

 :other/bar    55
 :other/longer 66}

;; if it's off
{:foo 1
 :quux 2

 :other/bar 55
 :other/longer 66}

It would be nice to be able to tell Cursive to preserve these manual alignments.

Related issues/outside references:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant