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

Auto​Wrap

by randy3k ALL

Auto (Hard) Wrap for Sublime Text 2/3

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Auto (Hard) Wrap for Sublime Text 2/3

test codecov

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