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

[Feature request] Custom shape #1

Open
thecaralice opened this issue Apr 4, 2024 · 2 comments
Open

[Feature request] Custom shape #1

thecaralice opened this issue Apr 4, 2024 · 2 comments

Comments

@thecaralice
Copy link

Would be cool to have other shapes available, e.g. famous donut.c; maybe even allow user to use custom shapes in some way

@diniremix
Copy link
Contributor

...or as rohitdhas's shittier.

@fprasx
Copy link
Owner

fprasx commented Apr 8, 2024

This is actually really doable! Internally, the unformatter can generate a line of any length (we just set the desired length to 80 for block unformatting). So if you want to make shape, you just give it all the desired lengths you want, and then insert whitespace appproriately. I don't have time to work on this right now, but definitely might try it in the future :)

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

3 participants