SaneSnippets
Sublime Text snippets optimized for humans, not robots
Details
Installs
- Total 3K
- Win 2K
- Mac 876
- Linux 431
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SaneSnippets for Sublime Text
SaneSnippets consist of text files with little bit of YAML front matter. They're optimized for human readability, not XML parsers:
---
description: Lorizzle
tabTrigger: lorizzle
scope: text.plain
---
Lorizzle sure dolizzle sit amizzle, pot adipiscing shizznit. Nullizzle check
out this velit, fo shizzle volutpizzle, suscipit quizzle, doggy vizzle,
yippiyo. Pellentesque tellivizzle tortizzle. Sizzle erizzle. Mah nizzle
izzle shizzle my nizzle crocodizzle sizzle dang tempizzle bizzle. Maurizzle
pellentesque nibh et turpizzle. Shiz izzle gizzle. Pellentesque nizzle
rhoncus i saw beyonces tizzles and my pizzle went crizzle. In daahng dawg
habitasse cool boom shackalack. Brizzle dapibizzle. Curabitur nizzle
pimpin', pretizzle da bomb, mattizzle ac, eleifend vitae, nunc. Mofo
suscipizzle. We gonna chung sempizzle go to hizzle phat gizzle.
… because nobody likes hand-coding XML.
To use, add .sane-snippet
files to any Sublime Text package. I personally keep
them in User/Snippets
.
Installation
Using Sublime Package Control
Pick this option. Install via Package Control,
using the Package Control: Install Package
menu item.
Look for SaneSnippets
in the package list.
Using Git
Clone SaneSnippets into your Packages
directory:
$ cd to packages dir ...
git clone https://github.com/SublimeText/SaneSnippets.git
Download manually
- Download the latest version
- Unzip and rename the folder to
SaneSnippets
- Move the folder into your
Packages
directory.
The Packages
directory is located at:
- Linux:
~/.config/sublime-text-3/Packages/
- OS X:
~/Library/Application Support/Sublime Text 3/Packages/
- Windows:
%APPDATA%/Sublime Text 3/Packages/
You can also find it via Preferences → Browse Packages.
Usage
Create .sane-snippet
files anywhere in your Sublime Text Packages directory.
SaneSnippets (sane.sublime-snippet
) will be regenerated every time you start
Sublime Text and their contents have changed. When you save a .sane-snippet
file using Sublime Text, it will always be regenerated.
You can manually regenerate all SaneSnippets in the whole packages directory
with the SaneSnippets: Regenerate SaneSnippets (force)
command from the command
palette (Ctrl+Shift+p
, Command+Shift+p
) or the menu (Tools > Packages >
SaneSnippets > Regenerate SaneSnippets (force)).
This will be useful when renaming or moving SaneSnippets.
You can also remove all generated snippets files
with the SaneSnippets: Remove all compiled snippets
command,
for example when you intend to uninstall the package.
They will be automatically regenerated
the next time ST is started.
Note: The YAML front matter parsing is using a naïve regular expression instead of a proper YAML parser. Please keep it simple.
Contributors
License
Copyright © 2011 Justin Hileman Copyright © 2012-2020 FichteFoll fichtefoll2@googlemail.com
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.