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
  • 5 years ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 104
  • Win 55
  • OS X 41
  • Linux 8
Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7
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 1 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": "?"