ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Snippet Destroyer

by twolfson ST2/ST3

Destroy all Sublime Text completions and snippets

Details

Installs

  • Total 3K
  • Win 2K
  • OS X 353
  • Linux 239
May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11
Windows 4 4 1 4 3 1 1 8 10 17 5 0 3 2 1 3 4 3 6 2 3 3 0 3 6 4 2 0 5 6 5 2 1 1 3 4 4 1 3 3 1 4 3 0 3 1
OS X 0 1 0 1 0 3 0 2 2 0 0 2 0 1 1 0 0 1 1 0 0 3 1 0 0 0 0 0 0 0 1 1 0 0 0 1 0 4 0 0 1 1 0 1 0 0
Linux 0 2 0 0 0 1 0 0 1 0 1 0 0 1 1 4 0 0 0 0 1 0 0 2 0 2 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 2 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 gittip.

Support via Gittip

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.