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

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.