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 10K
  • Win 4K
  • OS X 4K
  • Linux 2K
Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4
Windows 1 2 4 3 0 2 6 0 1 0 2 1 5 1 1 2 1 1 1 1 0 4 3 2 4 2 1 2 3 1 2 3 5 3 0 1 0 0 0 1 2 7 0 3 1 1
OS X 0 1 0 2 2 1 2 2 0 1 0 3 2 1 0 1 2 1 4 2 5 2 0 2 4 7 0 6 2 0 0 3 1 2 1 0 1 0 0 1 5 3 1 0 1 3
Linux 0 0 0 1 1 1 5 0 0 1 0 3 0 0 1 1 0 1 2 1 0 0 2 0 0 1 3 0 3 1 0 0 5 4 0 2 1 0 0 2 1 1 1 1 0 0

Readme

Source
raw.​githubusercontent.​com

Auto (Hard) Wrap for Sublime Text 2/3

Build 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"]
}