- Hard Wrap
- Wraps text using line breaks at a specified length.
- 571 Installs
Readme
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
The Hard Wrap Nova extension allows you to break the lines of text to a specified length.
Usage
Use the Hard Wrap... (⌘#
) right-click command to to hard wrap text.
- The Break lines at preferences item controls the maximum line length before breaking. By default, this is 80 characters.
- The Remove existing newline characters preferences item removes extant newlines from a body of text, but maintains double newlines.
- The Auto-detect indents and # comments preferences item strips indents and comment signs from the text before wrapping, and replaces them with new ones afterwards.
Changelog
- Version 0.1: Initial release
- Version 0.1.1: Add repo details
- Version 0.2:
- Add option to count leading as part of line width
- Do minor optimisations
License
This project is provided under the MIT license:
© Copyright 2020 novov.
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.