cursive-ide/cursive

Option to leave manual alignment unchanged

imrekoszo opened this issue · 0 comments

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: