I was looking for some plugins which did so, but I could not find anything the internet which did so. Then I added this wrapping feature to my fork of the package Wrap Plus
, I also opened a pull request for this to be added to the original package:
Some links about semantic line feeds:
- http://rhodesmill.org/brandon/2012/one-sentence-per-line/
- https://www.google.com.br/search?q=semantic+linefeeds
- https://news.ycombinator.com/item?id=4642395
- https://en.wikipedia.org/wiki/Wikipedia:Don't_use_line_breaks
- https://erambler.co.uk/blog/semantic-linefeeds/
- https://vi.stackexchange.com/questions/9828/insert-a-newline-after-punctuations
- https://blog.doismellburning.co.uk/semantic-linebreaks/
- https://scott.mn/2014/02/21/semantic_linewrapping/
- https://stackoverflow.com/questions/899114/when-you-write-tex-source-how-do-you-use-your-editors-word-wrap
Installation
For now, if you want to install this, you need to install my fork of the package by git clone
. Open a command line on your Packages/
folder and run this:
git clone https://github.com/evandrocoan/Sublime-Wrap-Plus "Wrap Plus"
You need to edit its configuration file and enable the setting for semantic linefeeds:
{
...
// If true, the semantic linewrap also know as semantic linefeed will be used. See the following
// address for more descriptions: http://rhodesmill.org/brandon/2012/one-sentence-per-line/
"WrapPlus.semantic_line_wrap": false,
...
}
If you are interested, there is also this other package for semantic line wrapping while you are typing:
Licence
The MIT License (MIT)
Copyright (c) 2016 Eric Huss
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.