mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
allow customizing status bar message in sublime-settings file
This commit is contained in:
parent
abf4a94a59
commit
6bd62b95db
@ -262,7 +262,7 @@ class SendHeartbeatThread(threading.Thread):
|
|||||||
|
|
||||||
def set_status_bar(self):
|
def set_status_bar(self):
|
||||||
if SETTINGS.get('status_bar_message'):
|
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):
|
def set_last_heartbeat(self):
|
||||||
global LAST_HEARTBEAT
|
global LAST_HEARTBEAT
|
||||||
|
@ -16,5 +16,8 @@
|
|||||||
|
|
||||||
// Status bar message. Set to false to hide status bar message.
|
// Status bar message. Set to false to hide status bar message.
|
||||||
// Defaults to true.
|
// Defaults to true.
|
||||||
"status_bar_message": true
|
"status_bar_message": true,
|
||||||
|
|
||||||
|
// Status bar message format.
|
||||||
|
"status_bar_message_fmt": "WakaTime active %I:%M %p"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user