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

Gremlins

by redoPop ST3

Reveal odd and invisible whitespace characters in Sublime Text.

Labels unicode, utf8

Details

Installs

  • Total 663
  • Win 246
  • OS X 313
  • Linux 104
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 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
Windows 0 0 0 0 0 0 2 0 0 0 0 0 2 0 0 1 0 0 3 6 10 0 0 0 0 1 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 1
OS X 0 0 1 1 0 0 1 0 0 0 3 0 1 2 0 0 2 0 6 6 6 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 3 6 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

Sublime Gremlins

A Sublime Text 3 plugin to help identify invisible and ambiguous Unicode whitespace characters (zero width spaces, no-break spaces, and similar.) I call these characters gremlins, and Sublime Gremlins highlights them in the following ways:

  1. The line containing the character is marked in the gutter.
  2. A colored border marks the character within the line.
  3. When the cursor reaches the character, the status bar displays its Unicode code position and name.

Sublime Gremlins also adds items to the command palette and edit menu, and provides some optional key bindings:

Command palette items

Sublime Gremlins adds the following items to your command palette:

  • Gremlins: Find All selects (with multiple cursors) all gremlins in the current view.
  • Gremlins: Find Next selects the next gremlin from the current cursor position.
  • Gremlins: Highlight All highlights all gremlins in the current view (happens automatically by default).
  • Gremlins: Name Current Character Displays the Unicode code point and name of the character at the current cursor position, whether or not it's a gremlin.

Edit menu items

Sublime Gremlins adds a couple of items to the bottom of Sublime's Find menu:

  • Find Next Gremlin selects the next gremlin from the current cursor position.
  • Find All Gremlins selects (with multiple cursors) all gremlins in the current view.

Key bindings

Sublime Gremlins doesn't add any key bindings by default, but it does provide some example key bindings so you can add your own if you want.

Open the list of example key bindings by selecting Preferences ▸ Package Settings ▸ Gremlins ▸ Example Key Bindings from the menu, then copy any key bindings you'd like to use into your personal key bindings file!