lucas-labs / coco

🥥 coco » interactive cli for creating conventional commits.
MIT License
3 stars 0 forks source link

✨ » Calculate real max char count #14

Closed lucas-labs closed 1 month ago

lucas-labs commented 1 month ago

Based on the type and scope, we can know how many characters are available for the summary. For now, we just use 72, but 72 should be the max including the type and scope.

Extracted from:

https://github.com/lucas-labs/coco/blob/9d12938a40c07d644e328c34460e849307876fc3/coco/src/view/sections/builder/commit.rs#L44-L47