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

Slugify

by alimony ST2/ST3

Convert the selected text to a slug.

Details

  • 2016.01.12.21.26.15
  • github.​com
  • github.​com
  • 2 years ago
  • 5 minutes ago
  • 5 years ago

Installs

  • Total 2K
  • Win 492
  • OS X 832
  • Linux 312
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 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31
Windows 0 1 0 1 0 0 0 2 1 1 3 0 0 0 4 0 1 0 0 2 1 0 0 0 3 0 1 1 2 0 1 0 1 0 1 2 0 0 0 0 0 1 2 1 1
OS X 0 1 0 1 2 0 1 0 1 0 0 1 0 0 1 3 0 2 0 0 1 3 0 0 1 0 0 2 1 2 1 2 0 1 1 0 0 0 1 0 0 0 0 0 0
Linux 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Slugify

Sublime Text 2 & 3 package that adds a command for converting the selected text to a slug.

Installation

This package is available through Package Control, it’s called “Slugify”.

Usage

Select a piece of text and run “Slugify” from the Command Palette. You can then enter what separator to use in the slug; the default is dash, and just pressing enter will use that. All characters will be converted to ASCII, removing any punctuation and such, and spaces converted to the previously entered separator.

Credits

The slugify function itself is by Armin Ronacher. The plugin part is based on sublime-slug by Damiano Seno.