The purpose of this plugin is to quickly cycle through a list of wrap wrap_width settings in the user preferences.
Although it's fairly easy to change wrap_width I like to have a keyboard shortcut to cycle round ruler markers, especially when I change screen size, or split the window in two, or just go from text to code.
- Open the user preferences
Sublime Text > Preferences > Settings - In the User preferences, set the
rulersoption to your desired cycle points e.g.[80, 100, 120] - Open the user key bindings at
Sublime Text > Preferences > Key bindings - Copy paste the the key mappings from WrapCycle.sublime-keymap - without the enclosing
[] - Use the key mappings to cycle forward or backward as required.
Note the changed wrap width will appear in the status. Changing it manually will not update the status message.
If no rulers are set, the plugin will cycle through [80, 100, 120]. It won't set the rulers
The user can switch to a different wrap_width using the following default key maps:
alt + super + Left Arrow: cycle right to left in the list (usually decreasing the width)alt + super + Right Arrow: cycle left to right in the list (usually increasing the width)
- add unit tests