This script allows you to get a little more information about the state of Sublime Text 2
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
ST2Assistant.py

README.md

Sublime Text 2 Assistant

This script allows you to get a little more information about the state of Sublime Text 2, you can use when writing their own plugins.

Installation

Copy ST2Assistant.py to your package directory.

Usage

import ST2Assistant
...
assistant = ST2Assistant.Assistant()
if assistant.is_side_bar_visible():
    print 'Side bar is visible'
else:
    print 'Side bar is hidden'

List of functions

  • is_portable() - return True if installed as portable, False if not
  • is_minimap_visible() - return True if mini map is visible, False if not
  • is_status_bar_visible() - return True if status bar is visible, False if not
  • is_side_bar_visible() - return True if side bar is visible, False if not