headwind icon indicating copy to clipboard operation
headwind copied to clipboard

Preserve line breaks

Open gary149 opened this issue 6 years ago • 1 comments

It would be nice to preserve line-breaks when formatting with headwind - I use prettier line limit and headwind will inline everything on save.

With prettier format:

image

With the same prettier config and headwind:

image

edit: the real solution may be to run headwind before prettier.

gary149 avatar Dec 17 '19 15:12 gary149

Coming from VIM world (https://github.com/iamcco/coc-tailwindcss, https://github.com/neoclide/coc.nvim), I would like this behaviour as well.

Currently I work on a small project and when prototyping quickly with Tailwind, you end up with lots of classes. It's great to have the auto sorting in place because scanning such strings is more predictable. But if you still want to use split views for 80-120 line length, you need to constantly check things outside the screen.

Option like headwind.preserveLineBreaks would be ideal.

nj-screenshot 2021-01-10 at 18 12 47@2x

Text wrapping solves this; but it's not ideal – some lines can be long e.g. URLs.

awinecki avatar Jan 10 '21 17:01 awinecki