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
  • 6 years ago
  • 33 minutes ago
  • 6 years ago

Installs

  • Total 126
  • Win 70
  • Mac 47
  • Linux 9
Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 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
Windows 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 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
Mac 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 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": "?"