slickwrap

This package is meant for easy to use line wraps.

hanjoes

121

0

0.3.0

MIT

GitHub

Slickwrap

Trying to mimic emacs's easy-to-use auto wrap. This package uses editor.preferredLineLength from wrap-guide package to control line length. If wrap-guide package is not installed, Max Row Length from the package setting is used (default to 80).

Usage

Auto Hard Wrap

If Auto Hard Wrap is turned on in package settings, a hard wrap will be inserted to control row length, but keep row as long as possible. Typing whitespace characters (WS, TAB, ENTER) will trigger auto wrap when Auto Hard Wrap is turned on.

Auto Wrap Demo

Wrap File

Use keymap alt-q to wrap the whole file. This will make the file only contain lines within configured max row length.

File Wrap Demo

Note

In case you are wondering why the Max Row Length setting is not working. This package uses the wrap-guide's line length for better results.

For files doesn't contain extension, you can always wrap it with alt-q, but if you really want to auto wrap this type of files, add '' to the Supported File Extensions settings. (for e.g.: before adding the old list is 'md, js', after adding empty empty extension, it becomes 'md, js, ')