Snippet Destroyer
Destroy all Sublime Text completions and snippets
Details
Installs
- Total 7K
- Win 5K
- Mac 743
- Linux 634
Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 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 |
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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
sublime-snippet-destroyer
Destroy all Sublime Text completions and snippets.
Have you ever been humming along, using Tab
to fill out previously used variables, then bam you autocomplete to a snippet? Your flow is broken and frustrated at no easy way to remove the default snippets.
Well, suffer no more! sublime-snippet-destroyer
seeks and destroys all completions and snippets.
sublime-snippet-destroyer
does not aim to allow for restoration of snippets. If we started doing that, then we should make a full-fledged snippet manager.
Getting Started
Installation
This package is available under snippet-destroyer
inside of Package Control, a [Sublime Text][subl] plugin that allows for easy management of other plugins.
If you prefer the manual route, you can install the script via the following command in the Sublime Text terminal (ctrl+`
) which utilizes git clone
.
import os; path=sublime.packages_path(); (os.makedirs(path) if not os.path.exists(path) else None); window.run_command('exec', {'cmd': ['git', 'clone', 'https://github.com/twolfson/sublime-snippet-destroyer', 'snippet-destroyer'], 'working_dir': path})
Packages can be uninstalled via “Package Control: Remove Package” via the command pallete, ctrl+shift+p
on Windows/Linux, command+shift+p
on Mac.
Usage
sublime-snippet-destroyer
provides a new command to the command pallete “Destroy all snippets!!”
When this is ran, it finds all .sublime-snippet
+ .sublime-completions
+ .tmSnippet
files in your Sublime Text Packages directory.
If no snippets are found, you will be informed as such.
If snippets are found, you will be prompted to confirm in their deletion. If you approve, they will be removed from disk.
There is currently one section we cannot erase which is any plugin with a on_query_completions
method (e.g. CSS
and HTML
). These are baked in to EventListener
commands and cannot be scrubbed easily. As a result, you must delete these files manually.
Donating
Support this project and others by twolfson via donations.
http://twolfson.com/support-me
Unlicense
As of Nov 20 2013, Todd Wolfson has released this repository and its contents to the public domain.
It has been released under the UNLICENSE.