Skip to content

rkanter/FancyLineWrapper

Repository files navigation

Fancy Line Wrapper

A simple webpage that helps me format git commit messages the way I like and to match external requirements.

  1. Overview
  2. Useful Tips

Go to Fancy Line Wrapper here or the GitHub Pages hosted one here.

Overview

Enter text into the upper text box however you want, and the lower text box will automatically re-format it on-the-fly according to the following rules:

  1. Line wraps at the configured number of characters (80 by default).
  2. Lines beginning with a list marker (bullets, numbers, letters, Roman numerals) are properly indented as a list, including wrapping the line with deeper indenting so it matches nicely.
  3. Supported list markers include:
    • Bullets: -, *, +
    • Numbers/Letters: 1., 1), (1), a., a), (a)
    • Roman numerals: i., i), (i), iii., (iii)
  4. Lists also support nesting, including wrapping; just use spaces to indent the list marker.
  5. "Fancy" quotes, dashes, and ellipses are replaced with plain ones (e.g. “foo” –> "foo", –> -, –> ...)
  6. Code block areas (opened with ``` and closed with ```) won't have any formatting applied.

Here's an example to better illustrate things:

screenshot.png

Useful Tips:

  • The resulting text can either be copy-pasted from the lower text box the usual way, or by clicking the giant copy button.
  • The upper text box can be resized freely, while the lower text box can only be resized down.
  • Refreshing, or even closing the page will not lose your entered text.
  • If your browser/OS has spell-checking, it should work.
  • You can change the line length for wrapping by clicking the "Settings" button.

About

A simple webpage that helps me format git commit messages the way I like and to match external requirements.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages