Gremlins
Reveal odd and invisible whitespace characters in Sublime Text.
Details
Installs
- Total 6K
- Win 2K
- Mac 3K
- Linux 785
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 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 1 | 1 | 4 | 2 | 3 | 0 | 0 | 2 | 0 | 4 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 | 0 | 0 | 2 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
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:
- The line containing the character is marked in the gutter.
- A colored border marks the character within the line.
- 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:
- Open Sublime Text's command palette
- Select the “Package Control: Install Package” command
- 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.