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

Redacted

by nickgravelyn ST2/ST3

Sublime Text 3 plugin to hide characters in selections.

Details

  • 2015.01.20.19.24.42
  • github.​com
  • github.​com
  • 4 years ago
  • 25 minutes ago
  • 4 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

Redacted

A plugin for Sublime Text to hide text inside a selection.

Redact Demo

The idea came from wanting to be able to write up some kind of form letter and leave a placeholder for a code/key/etc. Rather than leave it blank, I thought it would be nice to put in a real key and then have it blank out. But I wanted to keep punctuation in there so it was clear what the space was for.

Installation

Easily install with Package Control under the name “Redacted”. Or install manually:

  1. Clone or download the repo into a directory named “Redacted”.
  2. Put that directory into Sublime's Packages directory. On OS X that'd be ~/Library/Application Support/Sublime Text 3/Packages/Redacted.

Usage

  1. Select some text.
  2. Press ctrl+shift+delete or use the menu item Edit->Text->Redact to redact characters in the selection.

Keybinding

Redacted defaults to binding to ctrl+shift+delete, but you can easily rebind that in your user key binding file.

Settings

Redacted has two simple settings to completely control its behavior. Here are the defaults:

// Regular expression used to match characters to be redacted.
// By default it's any non-whitespace, non-punctuation character.
"redacted_search": "[\\P{P}\\w]"

// Character used to replace redacted characters.
// Should be a single character, but technically it doesn't need to be.
"redacted_replacement": "?"