You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing long comments, or prose in LaTeX or Markdown etc., it is often necessary to reflow/rewrap text to ensure no lines are longer than the line width, while also ensuring commented code remains correctly commented (eg if # characters begin a comment, then all lines in the reflowed comment block should start with that character, and such characters that began lines should not end up midway through the reflowed text). Doing this manually is tedious and potentially error-prone. Reflowing text can be done with Vim’s gq and gw commands, for example. It would be great to have this feature in Amp.
Example:
# This is a comment that is too long and should be reflowed.
Could be reflowed as:
# This is a comment that is
# too long and should be
# reflowed.
The text was updated successfully, but these errors were encountered:
I forked this very recently to add 'reflowing' (I called it justification). I've begun to implement just the simple greedy algorithm in a new selection::justify command. I still at the very least need to add tests and make sure it actually works (it probably doesn't), but it's there.
When writing long comments, or prose in LaTeX or Markdown etc., it is often necessary to reflow/rewrap text to ensure no lines are longer than the line width, while also ensuring commented code remains correctly commented (eg if
#
characters begin a comment, then all lines in the reflowed comment block should start with that character, and such characters that began lines should not end up midway through the reflowed text). Doing this manually is tedious and potentially error-prone. Reflowing text can be done with Vim’s gq and gw commands, for example. It would be great to have this feature in Amp.Example:
Could be reflowed as:
The text was updated successfully, but these errors were encountered: