ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Status​Message

by shagabutdinov ST2/ST3

Custom status bar for sublime

Details

Installs

  • Total 5K
  • Win 2K
  • OS X 1K
  • Linux 996
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7
Windows 0 1 1 1 2 0 1 2 0 1 0 0 3 1 2 1 2 1 3 1 0 1 0 0 0 1 0 0 0 0 0 0 2 1 1 0 1 0 2 1 2 2 0 1 1 1
OS X 0 0 3 2 5 1 1 2 0 1 1 1 0 3 0 3 1 1 3 0 0 0 0 0 1 1 2 0 0 1 1 1 0 1 2 2 0 0 4 1 2 3 2 0 1 3
Linux 0 0 0 0 1 2 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 2 1 1 0 1 1 2 0 0 0 1 0 0 1 0 0 0 1 0 1 0 2

Readme

Source
raw.​githubusercontent.​com

Sublime StatusMessage plugin

Glorious plugin that replaces default (ugly) sublime status bar and makes it a bit nicer (with icons). Works great together with sublime-shell-status plugin.

Demo

Notebook screenshot

This is sublime running on my laptop. It's always employs as much space as possible that is why there is time (ω) and battery charge (do not displayed on screenshot) are showed in status bar panel.

WARNING

It disable some default status messages (window-status messages) and sublimes default status messages. In order to see all status messages you should use keyboard hotkey.

Some icons used in status bar (e.g. battery “🔋”, search “🔎” or star “✱”) will result to strange text padding: lowest pixel row of text (including underscores “_”) will not be visible. It is really annoying bug and if you have an workaround please tell me it.

Installation

This plugin is part of sublime-enhanced plugin set. You can install sublime-enhanced and this plugin will be installed automatically.

If you would like to install this package separately check “Installing packages separately” section of sublime-enhanced package.

Features

Replaces default status bar with a bit nicer one. Provides API for other plugins to make nice status bar output.

Commands

Description Keyboard shortcut Command palette
Show scope name ctrl+u, ctrl+\ StatusMessage: Show scope name
Toggle default status ctrl+u, ctrl+y StatusMessage: Toggle default status

Dependencies

None

API

Methods are located under “StatusMessage.status_message” (“from StatusMessage import status_message”):

set(view, key, message, timeout = None)

Set status message to view.

Arguments:

  • view - view to set message

  • key - unique id of message; message could be erased or resetted by this key

  • message - message to be setted

  • timeout - number of milliseconds after which message will be erased; None - never erase

get(view, key)

Get status message from view.

Arguments:

  • view - view to set message

  • key - unique id of message

erase(view, key)

Erase status message from view.

Arguments:

  • view - view to set message

  • key - unique id of message

get_all(view)

Get all statuses from view that were setted through this plugin. Returns dict (key: message). Modifying this dict and issuing “refresh” command will result modifying status bar messages.

refresh(view)

Refresh view status bar.