sublimetext2 - Print to Sublimetext Status bar in Python? -
in sublimetext 2, uses python plugins. trying enhance existing plugin found.
basically timer plugin has start
, stop
, pause
functionality , print times status bar using sublimetext api call...
sublime.status_message(timer)
what show in status bar
show timer in fact started , running. this...
sublime.status_message('timer: on')
the problem briefly shows status bar message few seconds before being dismissed.
so looking information on how print status bar , keep there long term?
you can use view.set_status(key, value)
place persisting message in status bar. however, bound view, not application. if need message independent of view, have work using activated , deactivated listeners. alternatively, can set status on views in window using window.views()
array of views in window, , place status message on of views. then, when done, remove of status messages.
Comments
Post a Comment