1
1
mirror of https://github.com/walles/moar.git synced 2024-10-26 21:13:11 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Johan Walles
3dd20e609d Don't lose whitespace-only lines 2021-05-25 17:18:18 +02:00
Johan Walles
a062dd25f8 Break markdown links between text and URL
These tend to be long and screw up formatting, they need special
handling.
2021-05-25 17:10:24 +02:00
Johan Walles
3b7a906ce1 Word wrap URLs after / 2021-05-24 19:10:31 +02:00
Johan Walles
dda01e25a3 Break before whitespace 2021-05-24 18:46:00 +02:00
Johan Walles
ea7e9252b3 Extract wrap cutoff into its own function 2021-05-24 18:37:14 +02:00
Johan Walles
896ac3e874 Add word wrapping tests 2021-05-24 18:30:31 +02:00
Johan Walles
e605199d92 Trim leading whitespace from wrapped lines 2021-05-23 16:23:04 +02:00
Johan Walles
8a5f6fe473 Strip trailing whitespace when wrapping 2021-05-23 15:25:46 +02:00
Johan Walles
dcf8bbf9a7 Always wrap
NOTE: Wrapping should:
* be optional
* documented
* default to off
* be controllable from the command line
* be possible to toggle by pressing 'w'
2021-05-22 15:41:44 +02:00
Johan Walles
f0283e9e57 Implement simplistic wrapping 2021-05-22 15:41:44 +02:00
Johan Walles
b4a82b2668 Add initial line wrapper implementation
With failing tests.
2021-05-22 15:41:44 +02:00