Sublime Text 3 Plugin for a variety of commands for manipulating/navigating text
- Total 713
- Win 340
- OS X 293
- Linux 80
|Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9||Sep 8||Sep 7||Sep 6||Sep 5||Sep 4||Sep 3||Sep 2||Sep 1||Aug 31||Aug 30||Aug 29||Aug 28||Aug 27||Aug 26||Aug 25||Aug 24||Aug 23||Aug 22||Aug 21||Aug 20||Aug 19||Aug 18||Aug 17||Aug 16||Aug 15||Aug 14||Aug 13||Aug 12||Aug 11||Aug 10||Aug 9||Aug 8||Aug 7||Aug 6||Aug 5|
Sublime Text 2 (and 3!) Plugin including a variety of commands for manipulating/navigating text
There are things that humans excel at. Creativity, free thinking, visual processing.
Editing text is not one of those things.
In every document, there will crop up moments when some menial task threatens to throw you off your groove. Sublime Text does an excellent job of making many of these things easier, with multiple selections and its many other wonderful features. Still, menial tasks are what computers excel at. You shouldn't have to write out numbers in a sequence from 1 to N. You shouldn't have to sort words or phrases. You shouldn't have to keep track of how many selections you have, you shouldn't have to convert things to hexadecimal by hand, and you shouldn't have to count how many characters are in a string.
That's where TextCommands comes in.
It's a collection of commands that are tested in the field.
I edit thousands of lines of XML by hand on a regular basis, and I do best to automate the things that I find menial and repetitive. You can benefit from my automation.
So, enjoy a free pass to become more productive in your text editing. If you think of something to add, feel free to either do a pull request or file a bug report.
Snake To CamelCase: Converts “method_names_like_this” to “MethodNamesLikeThis”
CamelCase to Snake: Converts “MethodNamesLikeThis” to “method_names_like_this”
Underscore To Spaces: Converts “names_like_this” to “names like this”
Space To Underscores: Converts “names like this” to “names_like_this”
Dashes To Spaces: Converts “names-like-this” to “names like this”
Space To Dashes: Converts “names like this” to “names-like-this”
Dots To Spaces: Converts “names.like.this” to “names like this”
Space To Dots: Converts “names like this” to “names.like.this”
Remove Duplicate Lines: Removes duplicate lines in each selection (duplicates only tracked inside each selection)
Line Length: Breaks a selection into multiple lines based on a maximum character length (breaks only on spaces) (does not work in Sublime Text 3 beta 3021)
Sort Text: Sorts your selections in place.
Given some text:
joe went there from here
If you select
here each as its own selection and use the
Sort Text command, you are left with this:
from here joe went there
Shift Selections Left: Shifts all selections left one character.
Shift Selections Right: Shifts all selections right one character.
Go To Character: Jumps to a specified character number, moving it into view.
Integer Sequence: Converts all selected integers into a numeric sequence from 0 to N, where N is the number of integers.
Decimal To Hex: Converts all selected integers from decimal to hexadecimal.
Hex To Decimal: Converts all selected numbers from hexadecimal to decimal.
Increment Selection: Raises the value of all selected numbers by 1
Decrement Selection: Lowers the value of all selected numbers by 1
Character Value: Presents an alert that contains the value of each character selected.
Selection Length: Presents a dialog informing you of the number of characters you have selected (added together for each selection)
Number of Selections: Presents a dialog informing you of the number of selections you have.
Copyright © 2013 Samuel B. Fries 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.