ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Auto​Wrap

by randy3k ST2/ST3

Auto (Hard) Wrap for Sublime Text 2/3

Details

Installs

  • Total 8K
  • Win 3K
  • OS X 3K
  • Linux 2K
Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 0 3 0 2 1 6 2 3 2 3 5 7 6 1 1 5 0 4 11 4 2 1 2 2 6 5 2 2 0 2 5 5 2 1 2 1 1 1 3 1 2 2 1 0 0 2
OS X 0 5 1 0 4 2 0 2 7 1 2 3 2 0 1 3 3 2 3 3 0 1 2 3 0 0 5 2 1 1 1 3 6 7 0 2 4 3 5 1 3 0 3 3 7 1
Linux 0 4 3 1 3 1 1 0 2 1 0 2 4 2 1 1 1 6 1 1 0 1 2 3 5 5 1 3 1 4 2 5 4 3 1 3 2 3 2 1 1 1 1 3 1 2

Readme

Source
raw.​githubusercontent.​com

Auto (Hard) Wrap for Sublime Text 2/3

Build Status Coverage Status

Automatic hard wrap beyond wrap width. It could be useful for text documents. Sublime-Wrap-Plus could be used together with AutoWrap for the best experience.

Installation

Package Control

Usage

To toggle Auto Wrap

Type Auto Wrap in command palette or Go to menu Edit -> Auto Wrap.

Control wrap width

Wrap width is detected in the following order

  1. auto_wrap_width
  2. wrap_width
  3. rulers
  4. default 80

Settings

To activate Auto Wrap for a specific syntax at start up

Put the following in your syntax specific preference.
Menu -> Preference -> Settings - More -> Syntax Specific - User

{
    "auto_wrap" : true
}

You can also change auto_wrap_width by

{
    "auto_wrap_width" : 100
}

Long words

In default, long word will break into a new line. To disable this behavior, consider

{
    "auto_wrap_break_long_word" : false
}

Break beyond wrap width only

If true, long sentence will break only if the cursor is beyond wrap width.

{
    "auto_wrap_beyond_only" : true
}

Break patterns

Upon typing, AutoWrap searches for these characters (in regex, to be concatenate by |) and a line would break at (right before) a matched location. Note that Backslash has to be double escaped.

{
    # it is the default
    "auto_wrap_break_patterns" :  ["\\[", "\\(", "\\{", " ", "\\n"]
}