allow customizing status bar message in sublime-settings file

This commit is contained in:
Alan Hamlett 2015-06-21 10:42:31 -07:00
parent abf4a94a59
commit 6bd62b95db
2 changed files with 5 additions and 2 deletions

View file

@ -262,7 +262,7 @@ class SendHeartbeatThread(threading.Thread):
def set_status_bar(self):
if SETTINGS.get('status_bar_message'):
self.view.set_status('wakatime', 'WakaTime active {0}'.format(datetime.now().strftime('%I:%M %p')))
self.view.set_status('wakatime', datetime.now().strftime(SETTINGS.get('status_bar_message_fmt')))
def set_last_heartbeat(self):
global LAST_HEARTBEAT

View file

@ -16,5 +16,8 @@
// Status bar message. Set to false to hide status bar message.
// Defaults to true.
"status_bar_message": true
"status_bar_message": true,
// Status bar message format.
"status_bar_message_fmt": "WakaTime active %I:%M %p"
}