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

Status​Message

by shagabutdinov ALL

Custom status bar for sublime

Details

Installs

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

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.