Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lee-dohm/soft-wrap-indicator

Atom package that adds an indicator to the status bar that lights up if the active editor has soft wrap enabled
https://github.com/lee-dohm/soft-wrap-indicator

atom atom-package soft-wrap status-bar status-bar-indicator status-bar-selector

Last synced: 16 days ago
JSON representation

Atom package that adds an indicator to the status bar that lights up if the active editor has soft wrap enabled

Awesome Lists containing this project

README

        

# Soft Wrap Indicator [![Build Status](https://travis-ci.org/lee-dohm/soft-wrap-indicator.svg?branch=master)](https://travis-ci.org/lee-dohm/soft-wrap-indicator) [![Dependency Status](https://david-dm.org/lee-dohm/soft-wrap-indicator.svg)](https://david-dm.org/lee-dohm/soft-wrap-indicator)

Adds an indicator to the status bar that lights up if the active editor has soft wrap enabled.

## Usage

The indicator is present when the active pane is an editor and removed when the active pane is anything else. The indicator is lit when soft wrap is enabled on the active editor and dark if not.

Indicator Lit:

![Indicator Lit](https://raw.githubusercontent.com/lee-dohm/soft-wrap-indicator/master/indicator-lit.png)

Indicator Dark:

![Indicator Dark](https://raw.githubusercontent.com/lee-dohm/soft-wrap-indicator/master/indicator-dark.png)

### Styles

The soft wrap indicator can be styled using the following classes:

* `.soft-wrap-indicator` - For styling all instances of the indicator
* `.soft-wrap-indicator.lit` - For styling the indicator when lit

It uses the following values from `ui-variables` as defaults in order to blend in to your theme:

* `@text-color` - Text color when not lit
* `@text-color-highlight` - Text color when lit

By default it also includes a blurred text shadow to give it a kind of glow when lit.

## License

[MIT](https://github.com/lee-dohm/soft-wrap-indicator/blob/master/LICENSE.md)