spacedentist / spr

Submit pull requests for individual, amendable, rebaseable commits to GitHub
https://getcord.github.io/spr/
MIT License
377 stars 33 forks source link

[easy] Disable terminal text wrapping if message contains URL #133

Closed keyz closed 1 year ago

keyz commented 1 year ago

Summary

Minor issue: by default textwrap can break a URL into multiple lines. This makes PR links unclickable when the terminal window is small.

I played with a few config options on https://mgeisler.github.io/textwrap/ — think this is the best combo?

image

Test Plan

Before After
Screen Shot 2022-08-23 at 9 44 16 PM Screen Shot 2022-08-23 at 9 45 12 PM