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

Redacted

by nickgravelyn ALL

Sublime Text 3 plugin to hide characters in selections.

Details

  • 2015.01.20.19.24.42
  • github.​com
  • github.​com
  • 7 years ago
  • 3 hours ago
  • 7 years ago

Installs

  • Total 140
  • Win 77
  • Mac 52
  • Linux 11
Sep 29 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
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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": "?"