viisual / ASCII-Decorator

Convert selected text into banners made up of ASCII art.
351 stars 40 forks source link

ASCII Decorator

Features  |  Installation  |  Usage  |  Configuration  |  Credits

 

ASCII Decorator is a simple plugin implementation of pyfiglet for Sublime Text 3pyfiglet is a full port of FIGlet into pure python.  FIGlet is a program that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters.

Or simply:

    __________________     __         __                   __  __    _
   / ____/  _/ ____/ /__  / /_   ____/ /___  ___  _____   / /_/ /_  (_)____
  / /_   / // / __/ / _ \/ __/  / __  / __ \/ _ \/ ___/  / __/ __ \/ / ___/
 / __/ _/ // /_/ / /  __/ /_   / /_/ / /_/ /  __(__  )  / /_/ / / / (__  ) _ _
/_/   /___/\____/_/\___/\__/   \__,_/\____/\___/____/   \__/_/ /_/_/____(_|_|_)

Features

Font Selector & Font Favorites

See a live preview of the first selected region and convert all selected regions to the chosen font upon execution.
Font Selector shows all fonts by name, while Font Favorites shows your customized list of frequently used fonts.

By default, Font Favorites comes with a list of searchable header styles that can be used in the following ways:

─── By Size ───

**FontFavorites_BySize**

─── By Style ───

**FontFavorites_ByStyle**

Generate Font Test

Creates a new document which shows your selected text ( or "Lorem Ipsum" ) in all available fonts, so you can choose the one you like best!

**GenerateFontTest_SelectedText**

Installation

Install via Package Control for Sublime Text 3 (Preferred)

Install via git

Usage

Command Palette

Bring up the command palette:

Type:

Context Menu

Right-click on your document to access the context menu.

The ASCII Decorator sub-menu contains:

Key Bindings

One key binding is included for Default Font:

See sublime-commands for a list of additional commands that can be mapped to key bindings.

Selections

Each command will convert all selected regions to ASCII text.

Regions are handled in the following ways:

Configuration

You can define your sublime-settings preferences @:
Menu > Preferences > Package Settings > ASCII Decorator > Settings - User

Custom key bindings can be set @:
Menu > Preferences > Package Settings > ASCII Decorator > Key Bindings - User

Credits

Primary development & documentation by: Christopher Jones

Packaging of pyfiglet by: Peter Waller
Various enhancements by: Stefano Rivera & Enteleform
Ported to Sublime Text 3 by: Sascha Wolf

                        _|_|  _|            _|              _|
_|_|_|    _|    _|    _|            _|_|_|  _|    _|_|    _|_|_|_|
_|    _|  _|    _|  _|_|_|_|  _|  _|    _|  _|  _|_|_|_|    _|
_|    _|  _|    _|    _|      _|  _|    _|  _|  _|          _|
_|_|_|      _|_|_|    _|      _|    _|_|_|  _|    _|_|_|      _|_|
_|              _|                      _|
_|          _|_|                    _|_|