basilisp icon indicating copy to clipboard operation
basilisp copied to clipboard

`basilisp format` subcommand

Open chrisrink10 opened this issue 5 years ago • 3 comments

It would be useful to include a basilisp format CLI subcommand to format Basilisp code automatically (as cljfmt).

Once #467 is merged, we could even include a keybinding like c-f to allow reformatting REPL code.

chrisrink10 avatar Jan 28 '20 03:01 chrisrink10

https://docs.cider.mx/cider/indent_spec.html

chrisrink10 avatar Feb 20 '20 02:02 chrisrink10

I think in order to do this, we'll need to have some reader function which provide comments as part of the concrete syntax tree.

chrisrink10 avatar Jul 09 '20 12:07 chrisrink10

https://github.com/kkinnear/zprint feels like a nice option too.

chrisrink10 avatar Jan 25 '24 22:01 chrisrink10