AutoWidth
Sublime Text plugin to automatically adjust the text wrap width
Details
Installs
- Total 2K
- Win 1K
- Mac 467
- Linux 305
Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
AutoWidth
A Sublime Text plugin to automatically adjust the text wrap width when the view becomes narrower than the pre-defined wrap width.
If you set a fixed wrap_width
in the syntax specific settings for editing text (e.g. Markdown, reStructuredText), but sometimes have a window that's narrower than this wrap_width
(for example when using several panes next to each other), this plugin will dynamically adjust the wrap_width
to fit the view.
By default, the font size is also reduced by 1 when reducing wrap width. This behavior can be adjusted in the AutoWidth settings file, accessible in the Sublime Text preferences menu.
Installation
Tested on Sublime Text 3 only.
Via Package Control.
Use
Set "auto_width": true
either in your global settings, or, more usefully, in syntax-specific settings. For example, consider these syntax-specific settings for Markdown:
{
"draw_centered": true,
"font_size": 14,
"line_numbers": false,
"wrap_width": 98,
"auto_width": true
}
These settings will display Markdown text in a 98 character wide and centered column, without line numbers, and in a larger font.
With auto_width
enabled, Sublime Text will also automatically adjust the wrap width downwards if necessary if the view becomes too narrow, and then reset it to its default specified in the settings file when the view is wide enough again.
Wrap width is adjusted whenever a view becomes active. If you resize a window you can force an adjust by pressing F10
(FN+F10
on OS X).