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 7K
  • Win 2K
  • Mac 4K
  • Linux 838
Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 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
Windows 0 0 2 1 2 0 5 5 1 2 0 2 2 1 2 1 3 0 2 3 6 3 3 1 4 6 0 3 1 2 4 3 0 0 2 1 2 3 4 0 5 3 2 5 4 2
Mac 0 5 2 1 0 2 3 3 2 3 1 0 2 0 2 3 6 2 2 1 2 6 6 4 0 1 1 1 3 4 4 2 1 2 1 4 4 3 1 0 0 4 1 2 8 3
Linux 0 1 1 0 0 0 0 0 2 2 0 1 0 1 0 0 1 0 0 0 0 0 1 0 0 0 3 0 1 0 1 0 1 1 0 0 4 0 1 0 0 1 1 1 1 0
0510Jun 18Jun 15Jun 12Jun 9Jun 6Jun 3May 31May 28May 25May 22May 19May 16May 13May 10May 7May 4Jun 18 Linux: 0 Mac: 0 Windows: 0Jun 17 Linux: 1 Mac: 5 Windows: 0Jun 16 Linux: 1 Mac: 2 Windows: 2Jun 15 Linux: 0 Mac: 1 Windows: 1Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 0 Mac: 2 Windows: 0Jun 12 Linux: 0 Mac: 3 Windows: 5Jun 11 Linux: 0 Mac: 3 Windows: 5Jun 10 Linux: 2 Mac: 2 Windows: 1Jun 9 Linux: 2 Mac: 3 Windows: 2Jun 8 Linux: 0 Mac: 1 Windows: 0Jun 7 Linux: 1 Mac: 0 Windows: 2Jun 6 Linux: 0 Mac: 2 Windows: 2Jun 5 Linux: 1 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 2 Windows: 2Jun 3 Linux: 0 Mac: 3 Windows: 1Jun 2 Linux: 1 Mac: 6 Windows: 3Jun 1 Linux: 0 Mac: 2 Windows: 0May 31 Linux: 0 Mac: 2 Windows: 2May 30 Linux: 0 Mac: 1 Windows: 3May 29 Linux: 0 Mac: 2 Windows: 6May 28 Linux: 0 Mac: 6 Windows: 3May 27 Linux: 1 Mac: 6 Windows: 3May 26 Linux: 0 Mac: 4 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 4May 24 Linux: 0 Mac: 1 Windows: 6May 23 Linux: 3 Mac: 1 Windows: 0May 22 Linux: 0 Mac: 1 Windows: 3May 21 Linux: 1 Mac: 3 Windows: 1May 20 Linux: 0 Mac: 4 Windows: 2May 19 Linux: 1 Mac: 4 Windows: 4May 18 Linux: 0 Mac: 2 Windows: 3May 17 Linux: 1 Mac: 1 Windows: 0May 16 Linux: 1 Mac: 2 Windows: 0May 15 Linux: 0 Mac: 1 Windows: 2May 14 Linux: 0 Mac: 4 Windows: 1May 13 Linux: 4 Mac: 4 Windows: 2May 12 Linux: 0 Mac: 3 Windows: 3May 11 Linux: 1 Mac: 1 Windows: 4May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 5May 8 Linux: 1 Mac: 4 Windows: 3May 7 Linux: 1 Mac: 1 Windows: 2May 6 Linux: 1 Mac: 2 Windows: 5May 5 Linux: 1 Mac: 8 Windows: 4May 4 Linux: 0 Mac: 3 Windows: 2Jun 18 Linux: 0 Mac: 0 Windows: 0Jun 17 Linux: 1 Mac: 5 Windows: 0Jun 16 Linux: 1 Mac: 2 Windows: 2Jun 15 Linux: 0 Mac: 1 Windows: 1Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 0 Mac: 2 Windows: 0Jun 12 Linux: 0 Mac: 3 Windows: 5Jun 11 Linux: 0 Mac: 3 Windows: 5Jun 10 Linux: 2 Mac: 2 Windows: 1Jun 9 Linux: 2 Mac: 3 Windows: 2Jun 8 Linux: 0 Mac: 1 Windows: 0Jun 7 Linux: 1 Mac: 0 Windows: 2Jun 6 Linux: 0 Mac: 2 Windows: 2Jun 5 Linux: 1 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 2 Windows: 2Jun 3 Linux: 0 Mac: 3 Windows: 1Jun 2 Linux: 1 Mac: 6 Windows: 3Jun 1 Linux: 0 Mac: 2 Windows: 0May 31 Linux: 0 Mac: 2 Windows: 2May 30 Linux: 0 Mac: 1 Windows: 3May 29 Linux: 0 Mac: 2 Windows: 6May 28 Linux: 0 Mac: 6 Windows: 3May 27 Linux: 1 Mac: 6 Windows: 3May 26 Linux: 0 Mac: 4 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 4May 24 Linux: 0 Mac: 1 Windows: 6May 23 Linux: 3 Mac: 1 Windows: 0May 22 Linux: 0 Mac: 1 Windows: 3May 21 Linux: 1 Mac: 3 Windows: 1May 20 Linux: 0 Mac: 4 Windows: 2May 19 Linux: 1 Mac: 4 Windows: 4May 18 Linux: 0 Mac: 2 Windows: 3May 17 Linux: 1 Mac: 1 Windows: 0May 16 Linux: 1 Mac: 2 Windows: 0May 15 Linux: 0 Mac: 1 Windows: 2May 14 Linux: 0 Mac: 4 Windows: 1May 13 Linux: 4 Mac: 4 Windows: 2May 12 Linux: 0 Mac: 3 Windows: 3May 11 Linux: 1 Mac: 1 Windows: 4May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 5May 8 Linux: 1 Mac: 4 Windows: 3May 7 Linux: 1 Mac: 1 Windows: 2May 6 Linux: 1 Mac: 2 Windows: 5May 5 Linux: 1 Mac: 8 Windows: 4May 4 Linux: 0 Mac: 3 Windows: 2Jun 18 Linux: 0 Mac: 0 Windows: 0Jun 17 Linux: 1 Mac: 5 Windows: 0Jun 16 Linux: 1 Mac: 2 Windows: 2Jun 15 Linux: 0 Mac: 1 Windows: 1Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 0 Mac: 2 Windows: 0Jun 12 Linux: 0 Mac: 3 Windows: 5Jun 11 Linux: 0 Mac: 3 Windows: 5Jun 10 Linux: 2 Mac: 2 Windows: 1Jun 9 Linux: 2 Mac: 3 Windows: 2Jun 8 Linux: 0 Mac: 1 Windows: 0Jun 7 Linux: 1 Mac: 0 Windows: 2Jun 6 Linux: 0 Mac: 2 Windows: 2Jun 5 Linux: 1 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 2 Windows: 2Jun 3 Linux: 0 Mac: 3 Windows: 1Jun 2 Linux: 1 Mac: 6 Windows: 3Jun 1 Linux: 0 Mac: 2 Windows: 0May 31 Linux: 0 Mac: 2 Windows: 2May 30 Linux: 0 Mac: 1 Windows: 3May 29 Linux: 0 Mac: 2 Windows: 6May 28 Linux: 0 Mac: 6 Windows: 3May 27 Linux: 1 Mac: 6 Windows: 3May 26 Linux: 0 Mac: 4 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 4May 24 Linux: 0 Mac: 1 Windows: 6May 23 Linux: 3 Mac: 1 Windows: 0May 22 Linux: 0 Mac: 1 Windows: 3May 21 Linux: 1 Mac: 3 Windows: 1May 20 Linux: 0 Mac: 4 Windows: 2May 19 Linux: 1 Mac: 4 Windows: 4May 18 Linux: 0 Mac: 2 Windows: 3May 17 Linux: 1 Mac: 1 Windows: 0May 16 Linux: 1 Mac: 2 Windows: 0May 15 Linux: 0 Mac: 1 Windows: 2May 14 Linux: 0 Mac: 4 Windows: 1May 13 Linux: 4 Mac: 4 Windows: 2May 12 Linux: 0 Mac: 3 Windows: 3May 11 Linux: 1 Mac: 1 Windows: 4May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 5May 8 Linux: 1 Mac: 4 Windows: 3May 7 Linux: 1 Mac: 1 Windows: 2May 6 Linux: 1 Mac: 2 Windows: 5May 5 Linux: 1 Mac: 8 Windows: 4May 4 Linux: 0 Mac: 3 Windows: 2

Readme

Source
raw.​githubusercontent.​com

Sublime Gremlins

A Sublime Text 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:

Screenshot of Sublime Gremlins

  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.

This plugin also adds commands to identify and select (for removal/replacement) any gremlins in the current document.

Installation

Sublime Gremlins is available on Package Control:

  1. Open Sublime Text's command palette
  2. Select the “Package Control: Install Package” command
  3. Search & select the “Gremlins” package

If you prefer, install via git:

git clone https://github.com/redoPop/SublimeGremlins.git \
  "~/Library/Application Support/Sublime Text 3/Packages/Gremlins"

Command palette

Sublime Gremlins adds the following 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.

Find menu

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.

Select Preferences ▸ Package Settings ▸ Gremlins ▸ Key Bindings from the menu. This will open a two-pane view with Gremlins' example key bindings on the left and your personal key bindings file on the right. Copy over any key bindings you want to use.