GithubHelp home page GithubHelp logo

safield / inactivepanes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sublimetext/inactivepanes

0.0 2.0 0.0 247 KB

Sublime Text plugin that slightly dims (or grays) inactive panes in your group view

License: MIT License

Python 100.00%

inactivepanes's Introduction

InactivePanes

InactivePanes is a plugin for Sublime Text 2 and 3 that will dim the currently visible but inactivate panes to show you more visibly where your caret is and which view is focussed. Really useful with the Origami plugin or ST3's native panel handling.

This plugin could have incompatabilities with other plugins that modify color schemes programmatically, but so far no issues have been found. Please report errors you do encounter with this plugin here, also if they are not related to other plugins.

Originally created by adzenith, maintained by FichteFoll.

Installation

You can install this package from [Package Control][pck-ctrl] as "InactivePanes".

Usage

Views in inactive groups will automatically dimmed automatically when you install it.

When you want to disable this package, use Package Control's Disable Package and Enable Package commands. Alternatively you can adjust your "ignored_packages" setting manually.

Warning: If you want to remove the package, use Package Control's Remove Package command. Do not delete the plugin folder by yourself if you didn't disable the package before and ST is not running! This will cause various error messages because of outdated file references (but nothing critical).

Configuration

The following settings can be specified everywhere where you'd specify a color_scheme - user settings (Preferences > Settings - User), syntax-specific (Preferences > Settings - More > Syntax Specific - User) or [project settings][projset]. Thus, you can adjust each color scheme separately to blend with your theme's sidebar for example.

  • "inactive_panes_dim_color" (default: "#7F7F7F", gray)

    Change the color to dim to. Must be in the format #RRGGBB with hexadecimal numbers.

  • "inactive_panes_dim_strength" (default: 0.2)

    Change the dim strength; ranges from 0 (no modification) to 1 (everything will be changed to the color set above).

Images

Dark Scheme

Using a modified Twilight color scheme with a dim strength of 0.1:

Bright Scheme

Using the bundled LAZY color scheme with a dim strength of 0.3:

Custom Color

Using a modified Twilight color scheme with a custom color of "#7F7F00" and dim strength of 0.1:

Known Issues

  • When opening the same file in two groups (with command palette or by cloning it) both of the views will be marked as active. This is because there is no way to assign different color schemes to these view's since they share the same settings.

About

InactivePanes is a split from Origami which once included this feature but due to various issues it was removed. I extracted relevant commits (for retaining the commit history) from the Origami repo to keep developing this feature because I've used it ever since and think that it's really useful.

//: # (Specific (documentation) links) [projset]: http://www.sublimetext.com/docs/3/projects.html "Projects" [pck-ctrl]: https://sublime.wbond.net/ "Package Control"

inactivepanes's People

Contributors

adzenith avatar fichtefoll avatar schlamar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.