GithubHelp home page GithubHelp logo

optionalg / autowrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from randy3k/autowrap

0.0 2.0 0.0 2.3 MB

Auto (Hard) Wrap for Sublime Text 2/3

License: MIT License

JavaScript 1.58% Python 98.42%

autowrap's Introduction

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

autowrap's People

Contributors

randy3k avatar randybot avatar marcantonio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.